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)

从指定的 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

适用于