Share via


CertificateServerOperations.WriteCertificateData Method

Writes certificate record to the FIM CM database.

Namespace: Microsoft.Clm.Provision
Assembly: Microsoft.Clm.Provision (in Microsoft.Clm.Provision.dll)

Usage

'Usage
Dim caId As Byte
Dim certificate As Byte()
Dim certificateTemplateOid As String
Dim userGuid As Guid
Dim archived As Boolean
Dim returnValue As Integer

returnValue = CertificateServerOperations.WriteCertificateData(caId, certificate, certificateTemplateOid, userGuid, archived)

Syntax

'Declaration
Public Shared Function WriteCertificateData ( _
    caId As Byte, _
    certificate As Byte(), _
    certificateTemplateOid As String, _
    userGuid As Guid, _
    archived As Boolean _
) As Integer
public static int WriteCertificateData (
    byte caId,
    byte[] certificate,
    string certificateTemplateOid,
    Guid userGuid,
    bool archived
)
public:
static int WriteCertificateData (
    unsigned char caId, 
    array<unsigned char>^ certificate, 
    String^ certificateTemplateOid, 
    Guid userGuid, 
    bool archived
)
public static int WriteCertificateData (
    byte caId, 
    byte[] certificate, 
    String certificateTemplateOid, 
    Guid userGuid, 
    boolean archived
)
public static function WriteCertificateData (
    caId : byte, 
    certificate : byte[], 
    certificateTemplateOid : String, 
    userGuid : Guid, 
    archived : boolean
) : int

Parameters

  • caId
    Id of the certification authority (CA) that issued the certificate.
  • certificate
    The issued certificate.
  • certificateTemplateOid
    OID of the certificate template.
  • userGuid
    The Active Directory GUID of the subscriber.
  • archived
    A Boolean value that indicates if the private key is archived.

Return Value

Returns Int32, which represents the unique persistent id of the certificate record.

Thread Safety

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

Platforms

Development Platforms

Windows 2008 x64 Edition

Target Platforms

Windows XP SP3, Windows Vista SP1+, Windows 7, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

CertificateServerOperations Class
CertificateServerOperations Members
Microsoft.Clm.Provision Namespace