System.Windows.Forms
WCFサービスライブラリに追加できません。
List<ListViewItem>
メソッドからを返したいのですがGetItems(string path)
、の参照を追加しようとしSystem.Windows.Forms
ましたが、WCFサービスライブラリがサポートしていないようです。
どのように私はそれを行うことができますか?
namespace WcfServiceLibrary1
{
[ServiceContract]
public interface IFileManager
{
[OperationContract]
List<ListViewItem> collection(string path);
}
}
これは私のItem.cs
クラスです:
namespace WcfServiceLibrary1
{
[DataContract]
public class Item
{
[DataMember]
public string name;
[DataMember]
public string path;
[DataMember]
public long size;
[DataMember]
public DateTime date;
}
}