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
certificate
Type: Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificateX509The certificate to add to the message instance.
certificatePurpose
Type: Microsoft.ConfigurationManagement.Messaging.Framework.CertificatePurposesThe purpose of the certificate.
forcePurpose
Type: System.BooleanForce 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