SnapIns::Remove method
The Remove method removes a SnapIn object from the collection. Removing the snap-in from the collection removes it from the console as well.
Syntax
SnapIns.Remove( _
ByVal SnapIn As SnapIn _
)
Parameters
-
SnapIn
-
The SnapIn object that represents the snap-in to remove from the collection.
Return value
This method does not return a value.
Examples
' This example removes the Snap-In if it is named "Folder".
Dim strName As String
' objSnap was set by a previous call to objSnapIns.Item
strName = objSnap.Name
If ("Folder" = strName) Then
objSnapIns.Remove objSnap
End If
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
DLL |
|
IID |
IID_SnapIns is defined as 2EF3DE1D-B12A-49D1-92C5-0B00798768F1 |