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();
Exception Type | Condition |
---|---|
SecurityException | if the immediate caller does not pass the security check for the permission specified by the current permission object. |
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.
CodeAccessPermission Class | CodeAccessPermission Members | System.Security Namespace