Pkcs9ContentType Class

 

The Pkcs9ContentType class defines the type of the content of a CMS/PKCS #7 message.

Namespace:   System.Security.Cryptography.Pkcs
Assembly:  System.Security (in System.Security.dll)


[HostProtectionAttribute(SecurityAction::LinkDemand, MayLeakOnAbort = true)]
public ref class Pkcs9ContentType sealed : Pkcs9AttributeObject

NameDescription
System_CAPS_pubmethodPkcs9ContentType()

The Pkcs9ContentType constructor creates an instance of the Pkcs9ContentType class.

NameDescription
System_CAPS_pubpropertyContentType

The ContentType property gets an Oid object that contains the content type.

System_CAPS_pubpropertyOid

Gets an Oid object that represents the type of attribute associated with this Pkcs9AttributeObject object.(Inherited from Pkcs9AttributeObject.)

System_CAPS_pubpropertyRawData

Gets or sets the Abstract Syntax Notation One (ASN.1)-encoded data represented in a byte array.(Inherited from AsnEncodedData.)

NameDescription
System_CAPS_pubmethodCopyFrom(AsnEncodedData^)

Copies information from an AsnEncodedData object.(Overrides Pkcs9AttributeObject::CopyFrom(AsnEncodedData^).)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodFormat(Boolean)

Returns a formatted version of the Abstract Syntax Notation One (ASN.1)-encoded data as a string.(Inherited from AsnEncodedData.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

A Pkcs9ContentType object will be automatically generated and placed in the SignerInfo::SignedAttributes property whenever the CmsSigner::SignedAttributes property for the corresponding signer is not empty.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: