DiscoveryClientDocumentCollection.Remove メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
例外
使用例http://www.contoso.com/service1.disco の URL を持つ探索ドキュメントを、DiscoveryClientDocumentCollection から削除するコード例を次に示します。
Dim myDiscoveryClientDocumentCollection As New DiscoveryClientDocumentCollection() Dim myDiscoveryDocument As New DiscoveryDocument() Dim myStringUrl As String = "http://www.contoso.com/service.disco" Dim myStringUrl1 As String = "http://www.contoso.com/service1.disco" myDiscoveryClientDocumentCollection.Add(myStringUrl, myDiscoveryDocument) myDiscoveryClientDocumentCollection.Add(myStringUrl1, myDiscoveryDocument) myDiscoveryClientDocumentCollection.Remove(myStringUrl1)
DiscoveryClientDocumentCollection myDiscoveryClientDocumentCollection = new DiscoveryClientDocumentCollection(); DiscoveryDocument myDiscoveryDocument = new DiscoveryDocument(); string myStringUrl = "http://www.contoso.com/service.disco"; string myStringUrl1 = "http://www.contoso.com/service1.disco"; myDiscoveryClientDocumentCollection.Add(myStringUrl, myDiscoveryDocument); myDiscoveryClientDocumentCollection.Add(myStringUrl1, myDiscoveryDocument); myDiscoveryClientDocumentCollection.Remove(myStringUrl1);
DiscoveryClientDocumentCollection^ myDiscoveryClientDocumentCollection = gcnew DiscoveryClientDocumentCollection; DiscoveryDocument^ myDiscoveryDocument = gcnew DiscoveryDocument; String^ myStringUrl = "http://www.contoso.com/service.disco"; String^ myStringUrl1 = "http://www.contoso.com/service1.disco"; myDiscoveryClientDocumentCollection->Add( myStringUrl, myDiscoveryDocument ); myDiscoveryClientDocumentCollection->Add( myStringUrl1, myDiscoveryDocument ); myDiscoveryClientDocumentCollection->Remove( myStringUrl1 );
DiscoveryClientDocumentCollection myDiscoveryClientDocumentCollection =
new DiscoveryClientDocumentCollection();
DiscoveryDocument myDiscoveryDocument = new DiscoveryDocument();
String myStringUrl = "http://www.contoso.com/service.disco";
String myStringUrl1 = "http://www.contoso.com/service1.disco";
myDiscoveryClientDocumentCollection.Add(myStringUrl,
myDiscoveryDocument);
myDiscoveryClientDocumentCollection.Add(myStringUrl1,
myDiscoveryDocument);
myDiscoveryClientDocumentCollection.Remove(myStringUrl1);
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- DiscoveryClientDocumentCollection.Remove メソッドのページへのリンク