Oid2Unregister Method

Unregisters object identifier from OID registration database.


Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: (
public static bool Unregister(
	string value,
	OidGroup group,
	bool deleteFromDirectory


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.

Return Value

True 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}.


ArgumentNullExceptionvalue parameter is null or empty.

See Also