次の方法で共有


SBSWebServiceBehaviorAttribute Class

 

Represents the SBSWebServiceBehavior attribute, which is applied to the class that implements the web service.

Namespace:   Microsoft.WindowsServerSolutions.WebApi.Framework
Assembly:  Wssg.WebApi.Framework (in Wssg.WebApi.Framework.dll)

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.WindowsServerSolutions.WebApi.Framework.SBSWebServiceBehaviorAttribute

Syntax

[AttributeUsageAttribute(AttributeTargets.Class)]
public sealed class SBSWebServiceBehaviorAttribute : Attribute, 
    IServiceBehavior
[AttributeUsageAttribute(AttributeTargets::Class)]
public ref class SBSWebServiceBehaviorAttribute sealed : Attribute, 
    IServiceBehavior
<AttributeUsageAttribute(AttributeTargets.Class)>
Public NotInheritable Class SBSWebServiceBehaviorAttribute
    Inherits Attribute
    Implements IServiceBehavior

Constructors

Name Description
System_CAPS_pubmethod SBSWebServiceBehaviorAttribute()

Initializes a new instance of the SBSWebServiceBehaviorAttribute class with the default options.

System_CAPS_pubmethod SBSWebServiceBehaviorAttribute(String)

Initializes a new instance of the SBSWebServiceBehaviorAttribute class with a comma-separated string of authorization roles that are required.

System_CAPS_pubmethod SBSWebServiceBehaviorAttribute(WindowsBuiltInRole[])

Initializes a new instance of the SBSWebServiceBehaviorAttribute class with an array of authorization roles that are required.

Properties

Name Description
System_CAPS_pubproperty AuthorizationRoleIds

Gets the list of identifiers of the current authorization roles.

System_CAPS_pubproperty AuthorizationRoles

Gets a string that represents the authorization roles.

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

Adds binging parameters to the web service. This method is not implemented.

System_CAPS_pubmethod ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

Provides the ability to change run-time property values or insert custom extension objects such as error handlers, message or parameter interceptors, security extensions, and other custom extension objects.

System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate(ServiceDescription, ServiceHostBase)

Validates the web service. This method is not implemented.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

(Inherited from Attribute.)

Remarks

A sample declaration of this attribute is [SBSWebServiceBehavior("Administrators,RemoteUserGroup")], which specifies that the web service requires the user to belong to both the administrator and remote user groups. Alternatively, [SBSWebServiceBehavior()] means that there is no authorization requirement.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.WebApi.Framework Namespace

Return to top