Compartir a través de


ScopedMessagePartSpecification.TryGetParts Método

Definición

Comprueba si hay partes que coinciden con una clave de acción dada.

Sobrecargas

TryGetParts(String, MessagePartSpecification)

Comprueba si hay partes que coinciden con una clave de acción dada.

TryGetParts(String, Boolean, MessagePartSpecification)

Comprueba si hay partes que coinciden con una clave de acción dada.

TryGetParts(String, MessagePartSpecification)

Source:
ScopedMessagePartSpecification.cs
Source:
ScopedMessagePartSpecification.cs
Source:
ScopedMessagePartSpecification.cs

Comprueba si hay partes que coinciden con una clave de acción dada.

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

Parámetros

action
String

La clave de acción.

parts
MessagePartSpecification

Cuando este método vuelve, contiene MessagePartSpecification que contiene las partes encontradas. Este parámetro se pasa sin inicializar.

Devoluciones

true si se encontrasen partes coincidentes; de lo contrario, false.

Comentarios

Si la acción dada no se encuentra en ScopedMessagePartSpecification, después, se devuelven las partes del mensaje configuradas para la acción Carácter comodín ("*").

Se aplica a

TryGetParts(String, Boolean, MessagePartSpecification)

Source:
ScopedMessagePartSpecification.cs
Source:
ScopedMessagePartSpecification.cs
Source:
ScopedMessagePartSpecification.cs

Comprueba si hay partes que coinciden con una clave de acción dada.

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

Parámetros

action
String

La clave de acción.

excludeChannelScope
Boolean

Cuando true, restringe las partes al canal actual.

parts
MessagePartSpecification

Cuando este método vuelve, contiene MessagePartSpecification que contiene las partes encontradas. Este parámetro se pasa sin inicializar.

Devoluciones

true si se encontrasen partes coincidentes; de lo contrario, false.

Comentarios

Si la acción dada no se encuentra en ScopedMessagePartSpecification, después, se devuelven las partes del mensaje configuradas para la acción Carácter comodín ("*").

Se aplica a