Oid2Unregister Method
Unregisters object identifier from OID registration database.
Namespace: SysadminsLV.PKI.CryptographyAssembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.3.0+a868daf3196ed1ac6592e4f3e5cd2b429fc81eaa
public static bool Unregister(
string value,
OidGroup group,
bool deleteFromDirectory
)
Public Shared Function Unregister (
value As String,
group As OidGroup,
deleteFromDirectory As Boolean
) As Boolean
public:
static bool Unregister(
String^ value,
OidGroup group,
bool deleteFromDirectory
)
static member Unregister :
value : string *
group : OidGroup *
deleteFromDirectory : bool -> bool
- value String
- Specifies the object identifier value.
- group OidGroup
- Specifies the OID group from which the OID is removed.
- deleteFromDirectory Boolean
-
Specifies whether to perform registration removal from Active Directory. If Active Directory is unavailable,
the method will attempt to unregister OID from a local OID registration database.
BooleanTrue if OID or OIDs were unregistered successfully. If specified OID information is not
registered, the method returns
False. An exception is thrown when caller do not have
appropriate permissions. See
Remarks section for additional details.
Permissions: a caller must have local administrator permissions in order to remove OID
registration from local OID database. When
deleteFromDirectory is set to
True,
a caller must be a member of
Enterprise Admins group or have delegated permissions on a OID
container in Active Directory. OID container location is
CN=OID, CN=Public Key Services, CN=Services,CN=Configuration, {Configuration naming context}.
Method will fail with Win32Exception exception if OID is registered in Active Directory and
deleteFromDirectory is set to false.