語言

ImpersonateOnSerializingReplyMessageProperty.TryGet 方法

定義

從指定的訊息或訊息屬性取得該 ImpersonateOnSerializingReplyMessageProperty 屬性。

多載

TryGet(Message, ImpersonateOnSerializingReplyMessageProperty)

從指定的訊息取得該 ImpersonateOnSerializingReplyMessageProperty 屬性。

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

參數

message
Message

從中擷取該屬性的訊息。

property
ImpersonateOnSerializingReplyMessageProperty

當此方法回傳時,包含 ImpersonateOnSerializingReplyMessageProperty 從訊息中擷取的屬性。

傳回

true若發現該ImpersonateOnSerializingReplyMessageProperty財產;否則,。 false

適用於

TryGet(MessageProperties, ImpersonateOnSerializingReplyMessageProperty)

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

參數

properties
MessageProperties

訊息屬性物件,從中擷取該屬性。

property
ImpersonateOnSerializingReplyMessageProperty

當此方法回傳時,包含 ImpersonateOnSerializingReplyMessageProperty 從訊息中擷取的屬性。

傳回

true若發現該ImpersonateOnSerializingReplyMessageProperty財產;否則,。 false

適用於