Oid2Unregister Method

Unregisters object identifier from OID registration database.

Definition

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

Parameters

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

Boolean
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.

Remarks

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

Exceptions

ArgumentNullExceptionvalue parameter is null or empty.

See Also