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 | |
---|---|---|
SBSWebServiceBehaviorAttribute() | Initializes a new instance of the SBSWebServiceBehaviorAttribute class with the default options. |
|
SBSWebServiceBehaviorAttribute(String) | Initializes a new instance of the SBSWebServiceBehaviorAttribute class with a comma-separated string of authorization roles that are required. |
|
SBSWebServiceBehaviorAttribute(WindowsBuiltInRole[]) | Initializes a new instance of the SBSWebServiceBehaviorAttribute class with an array of authorization roles that are required. |
Properties
Name | Description | |
---|---|---|
AuthorizationRoleIds | Gets the list of identifiers of the current authorization roles. |
|
AuthorizationRoles | Gets a string that represents the authorization roles. |
|
TypeId | (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection) | Adds binging parameters to the web service. This method is not implemented. |
|
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. |
|
Equals(Object) | (Inherited from Attribute.) |
|
GetHashCode() | (Inherited from Attribute.) |
|
GetType() | (Inherited from Object.) |
|
IsDefaultAttribute() | (Inherited from Attribute.) |
|
Match(Object) | (Inherited from Attribute.) |
|
ToString() | (Inherited from Object.) |
|
Validate(ServiceDescription, ServiceHostBase) | Validates the web service. This method is not implemented. |
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
|
_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