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!

CodeAccessPermission.DemandImmediate

Determines whether the immediate caller of the code that calls this method has been granted the permission specified by the current permission object.

[Visual Basic]
Overridable Public Sub DemandImmediate()
[C#]
public virtual void DemandImmediate();
[C++]
public: virtual void DemandImmediate();
[JScript]
public function DemandImmediate();

Exceptions

Exception Type Condition
SecurityException if the immediate caller does not pass the security check for the permission specified by the current permission object.

Remarks

This method is called by the NGWS runtime during link-time security checks. Although you can call this method, you will probably never need to.

Notes to Implementers: You cannot override this method.

See Also

CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace