ImpersonateOnSerializingReplyMessageProperty.TryGet 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
从中提取属性的消息。
此方法返回时,包含 ImpersonateOnSerializingReplyMessageProperty 从消息中提取的属性。
返回
适用于
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
要从中提取属性的消息属性对象。
此方法返回时,包含 ImpersonateOnSerializingReplyMessageProperty 从消息中提取的属性。