DiscoveryClientReferenceCollection.Remove(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 DiscoveryReference 中移除具有指定的 URL 的 DiscoveryClientReferenceCollection。
public:
void Remove(System::String ^ url);
public void Remove (string url);
member this.Remove : string -> unit
Public Sub Remove (url As String)
参数
- url
- String
字符串,表示要从 DiscoveryClientReferenceCollection 中移除的对象的 URL。
示例
DiscoveryDocumentReference^ myDiscoveryDocumentReference = gcnew DiscoveryDocumentReference;
String^ myStringUrl = "http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection->Add( myStringUrl, myDiscoveryDocumentReference );
myDiscoveryClientReferenceCollection->Remove( myStringUrl );
DiscoveryDocumentReference myDiscoveryDocumentReference =
new DiscoveryDocumentReference();
string myStringUrl = "http://www.contoso.com/service.disco";
myDiscoveryClientReferenceCollection.Add(myStringUrl,
myDiscoveryDocumentReference);
myDiscoveryClientReferenceCollection.Remove(myStringUrl);
Dim myDiscoveryDocumentReference As New DiscoveryDocumentReference()
Dim myStringUrl As String = "http://www.contoso.com/service.disco"
myDiscoveryClientReferenceCollection.Add(myStringUrl, _
myDiscoveryDocumentReference)
myDiscoveryClientReferenceCollection.Remove(myStringUrl)