ServiceDescriptionFormatExtensionCollection.Remove(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 ServiceDescriptionFormatExtension 中移除指定 ServiceDescriptionFormatExtensionCollection 的第一個符合項目。
public:
void Remove(System::Object ^ extension);
public void Remove (object extension);
member this.Remove : obj -> unit
Public Sub Remove (extension As Object)
參數
- extension
- Object
要從 ServiceDescriptionFormatExtension 移除的 ServiceDescriptionFormatExtensionCollection。
範例
// Remove 'myFormatExtensionObject' element from collection.
myCollection->Remove( myFormatExtensionObject );
Console::WriteLine( "'myFormatExtensionObject' is removed from collection." );
// Remove 'myFormatExtensionObject' element from collection.
myCollection.Remove(myFormatExtensionObject);
Console.WriteLine("'myFormatExtensionObject' is removed"+
" from collection.");
' Remove 'myFormatExtensionObject' element from collection.
myCollection.Remove(myFormatExtensionObject)
Console.WriteLine("'myFormatExtensionObject' is removed" + _
" from collection.")