แก้ไข

แชร์ผ่าน


ScopedMessagePartSpecification.TryGetParts Method

Definition

Checks whether there are parts that match a given action key.

Overloads

TryGetParts(String, MessagePartSpecification)

Checks whether there are parts that match a given action key.

TryGetParts(String, Boolean, MessagePartSpecification)

Checks whether there are parts that match a given action key.

TryGetParts(String, MessagePartSpecification)

Source:
ScopedMessagePartSpecification.cs
Source:
ScopedMessagePartSpecification.cs

Checks whether there are parts that match a given action key.

public:
 bool TryGetParts(System::String ^ action, [Runtime::InteropServices::Out] System::ServiceModel::Security::MessagePartSpecification ^ % parts);
public bool TryGetParts (string action, out System.ServiceModel.Security.MessagePartSpecification parts);
member this.TryGetParts : string * MessagePartSpecification -> bool
Public Function TryGetParts (action As String, ByRef parts As MessagePartSpecification) As Boolean

Parameters

action
String

The action key.

parts
MessagePartSpecification

When this method returns, contains a MessagePartSpecification that contains the parts found. This parameter is passed uninitialized.

Returns

true if matching parts were found; otherwise, false.

Remarks

If the given action is not present in the ScopedMessagePartSpecification, then the message parts configured for the Wildcard action ("*") are returned.

Applies to

TryGetParts(String, Boolean, MessagePartSpecification)

Source:
ScopedMessagePartSpecification.cs
Source:
ScopedMessagePartSpecification.cs

Checks whether there are parts that match a given action key.

public:
 bool TryGetParts(System::String ^ action, bool excludeChannelScope, [Runtime::InteropServices::Out] System::ServiceModel::Security::MessagePartSpecification ^ % parts);
public bool TryGetParts (string action, bool excludeChannelScope, out System.ServiceModel.Security.MessagePartSpecification parts);
member this.TryGetParts : string * bool * MessagePartSpecification -> bool
Public Function TryGetParts (action As String, excludeChannelScope As Boolean, ByRef parts As MessagePartSpecification) As Boolean

Parameters

action
String

The action key.

excludeChannelScope
Boolean

When true, restricts the parts to the current channel.

parts
MessagePartSpecification

When this method returns, contains a MessagePartSpecification that contains the parts found. This parameter is passed uninitialized.

Returns

true if matching parts were found; otherwise, false.

Remarks

If the given action is not present in the ScopedMessagePartSpecification, then the message parts configured for the Wildcard action ("*") are returned.

Applies to