WSTrustServiceContract.IncludeNamespace (Método)
Adds the required WS-Trust namespaces to the WSDL if not already present.
Espacio de nombres: Microsoft.IdentityModel.Protocols.WSTrust
Ensamblado: Microsoft.IdentityModel (en microsoft.identitymodel.dll)
Uso
Dim context As WsdlEndpointConversionContext Dim prefix As String Dim ns As String Me.IncludeNamespace(context, prefix, ns)
Sintaxis
'Declaración
Protected Overridable Sub IncludeNamespace ( _
context As WsdlEndpointConversionContext, _
prefix As String, _
ns As String _
)
protected virtual void IncludeNamespace (
WsdlEndpointConversionContext context,
string prefix,
string ns
)
protected:
virtual void IncludeNamespace (
WsdlEndpointConversionContext^ context,
String^ prefix,
String^ ns
)
protected void IncludeNamespace (
WsdlEndpointConversionContext context,
String prefix,
String ns
)
protected function IncludeNamespace (
context : WsdlEndpointConversionContext,
prefix : String,
ns : String
)
Parámetros
- context
Provides mappings from exported WSDL elements to the endpoint description.
- prefix
The prefix of the namespace to be included.
- ns
The namespace to be included.
Excepciones
Tipo de excepción | Condición |
---|---|
ArgumentNullException | The parameter 'prefix' or 'ns' is either null or String.Empty. |
ArgumentNullException | The ‘context’ parameter is null. |
Seguridad para subprocesos
Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para subprocesos.No se garantiza que los miembros de instancias sean seguros para subprocesos.
Plataformas
Plataformas de desarrollo
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Vea también
Referencia
WSTrustServiceContract (Clase)
WSTrustServiceContract (Miembros)
Microsoft.IdentityModel.Protocols.WSTrust (Espacio de nombres)