[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Retrieves X509-based certificate from message.

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

Syntax

                 
  C#     Visual Basic     Visual C++  
public 

MessageCertificateX509 
GetCertificateFromMessage(
	

CertificatePurposes 
certificatePurpose
)
Public 
Function 
GetCertificateFromMessage ( _
	
certificatePurpose 
As 

CertificatePurposes _
) 
As 

MessageCertificateX509
public:
virtual 

MessageCertificateX509^ 
GetCertificateFromMessage(
	

CertificatePurposes 
certificatePurpose
) 
sealed

Parameters

certificatePurpose
CertificatePurposes
Purpose of certificate to retrieve from message. None and All types are not supported and will cause an exception to be raised. Do not pass in this as a flag (only a single bit) otherwise the behavior is undefined.

Return Value

Certificate object matching request.

Implements

IMessage . . :: . . GetCertificateFromMessage(CertificatePurposes)

Exceptions

Exception Condition
System . . :: . . ArgumentException Raised if Noneor Allis specified.
System . . :: . . ArgumentOutOfRangeException Raised if no match is found meeting the purpose

See Also