NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeBuilder.AddDeclarativeSecurity

Adds declarative security to this type.

[Visual Basic]
Public Sub AddDeclarativeSecurity( _
   ByVal action As SecurityAction, _
   ByVal pset As PermissionSet _
)
[C#]
public void AddDeclarativeSecurity(
   SecurityAction action,
   PermissionSet pset
);
[C++]
public: void AddDeclarativeSecurity(
   SecurityAction action,
   PermissionSet* pset
);
[JScript]
public function AddDeclarativeSecurity(
   action : SecurityAction,
   pset : PermissionSet
);

Parameters

action
The security action to be taken such as Demand, Assert, etc.
pset
The set of permissions the action applies to.

Remarks

AddDeclarativeSecurity may be called several times with each call specifying a security action (e.g., Demand, Assert, Deny) and a set of permissions that apply to the action.

See Also

TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace