Partager via


Message.AddCertificateToMessage Method (MessageCertificateX509, CertificatePurposes, Boolean)

 

Adds a certificate to a message with the option to disable any intelligence.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

public void AddCertificateToMessage(
    MessageCertificateX509 certificate,
    CertificatePurposes certificatePurpose,
    bool forcePurpose
)
public:
void AddCertificateToMessage(
    MessageCertificateX509^ certificate,
    CertificatePurposes certificatePurpose,
    bool forcePurpose
)
Public Sub AddCertificateToMessage (
    certificate As MessageCertificateX509,
    certificatePurpose As CertificatePurposes,
    forcePurpose As Boolean
)

Parameters

  • forcePurpose
    Type: System.Boolean

    Force the certificate's purpose even if it doesn't make sense (such as an SSL certificate specified for a mixed mode message).

See Also

AddCertificateToMessage Overload
Message Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top