共用方式為


ImpersonateOnSerializingReplyMessageProperty.TryGet 方法

定義

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

多載

TryGet(Message, ImpersonateOnSerializingReplyMessageProperty)

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

TryGet(MessageProperties, ImpersonateOnSerializingReplyMessageProperty)

從指定的 MessageProperties 物件取得 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

適用於