Share via


CertificateServerOperationsByCulture.WriteCertificateData Method

Writes a certificate record to the FIM CM database.

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

Usage

'Usage
Dim instance As CertificateServerOperationsByCulture
Dim caId As Byte
Dim certificate As Byte()
Dim certificateTemplateOid As String
Dim userGuid As Guid
Dim archived As Boolean
Dim uiCulture As CultureInfo
Dim culture As CultureInfo
Dim returnValue As Integer

returnValue = instance.WriteCertificateData(caId, certificate, certificateTemplateOid, userGuid, archived, uiCulture, culture)

Syntax

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

Parameters

  • caId
    ID of the CA that issued the certificate.
  • certificate
    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 the unique persistent id of the certificate record as a Int32.

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

CertificateServerOperationsByCulture Class
CertificateServerOperationsByCulture Members
Microsoft.Clm.Provision Namespace