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.")