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)

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

[AttributeUsageAttribute(AttributeTargets::Class)]
public ref class SBSWebServiceBehaviorAttribute sealed : Attribute, 
	IServiceBehavior

NameDescription
System_CAPS_pubmethodSBSWebServiceBehaviorAttribute()

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

System_CAPS_pubmethodSBSWebServiceBehaviorAttribute(String^)

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

System_CAPS_pubmethodSBSWebServiceBehaviorAttribute(array<WindowsBuiltInRole>^)

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

NameDescription
System_CAPS_pubpropertyAuthorizationRoleIds

Gets the list of identifiers of the current authorization roles.

System_CAPS_pubpropertyAuthorizationRoles

Gets a string that represents the authorization roles.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodAddBindingParameters(ServiceDescription^, ServiceHostBase^, Collection<ServiceEndpoint^>^, BindingParameterCollection^)

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

System_CAPS_pubmethodApplyDispatchBehavior(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_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(ServiceDescription^, ServiceHostBase^)

Validates the web service. This method is not implemented.

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.

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

Return to top

Community Additions

ADD
Show: