Upravit

Sdílet prostřednictvím


ImpersonateOnSerializingReplyMessageProperty.TryGet Method

Definition

Gets the ImpersonateOnSerializingReplyMessageProperty property from the specified message or message properties.

Overloads

TryGet(Message, ImpersonateOnSerializingReplyMessageProperty)

Gets the ImpersonateOnSerializingReplyMessageProperty property from the specified message.

TryGet(MessageProperties, ImpersonateOnSerializingReplyMessageProperty)

Gets the ImpersonateOnSerializingReplyMessageProperty property from the specified MessageProperties object.

TryGet(Message, ImpersonateOnSerializingReplyMessageProperty)

Gets the ImpersonateOnSerializingReplyMessageProperty property from the specified message.

public:
 static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Security::ImpersonateOnSerializingReplyMessageProperty ^ % property);
public static bool TryGet (System.ServiceModel.Channels.Message message, out System.ServiceModel.Security.ImpersonateOnSerializingReplyMessageProperty property);
static member TryGet : System.ServiceModel.Channels.Message * ImpersonateOnSerializingReplyMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef property As ImpersonateOnSerializingReplyMessageProperty) As Boolean

Parameters

message
Message

The message from which to extract the property.

property
ImpersonateOnSerializingReplyMessageProperty

When this method returns, contains the ImpersonateOnSerializingReplyMessageProperty property extracted from the message.

Returns

true if the ImpersonateOnSerializingReplyMessageProperty property was found; otherwise, false.

Applies to

TryGet(MessageProperties, ImpersonateOnSerializingReplyMessageProperty)

Gets the ImpersonateOnSerializingReplyMessageProperty property from the specified MessageProperties object.

public:
 static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Security::ImpersonateOnSerializingReplyMessageProperty ^ % property);
public static bool TryGet (System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Security.ImpersonateOnSerializingReplyMessageProperty property);
static member TryGet : System.ServiceModel.Channels.MessageProperties * ImpersonateOnSerializingReplyMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef property As ImpersonateOnSerializingReplyMessageProperty) As Boolean

Parameters

properties
MessageProperties

The message properties object from which to extract the property.

property
ImpersonateOnSerializingReplyMessageProperty

When this method returns, contains the ImpersonateOnSerializingReplyMessageProperty property extracted from the message.

Returns

true if the ImpersonateOnSerializingReplyMessageProperty property was found; otherwise, false.

Applies to