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!

SiteIdentityPermission Members

Public:

Constructor

SiteIdentityPermission Constructor Overloaded. Initializes a new instance of the SiteIdentityPermission class.

Properties

Site Sets or gets the site.

Methods

Assert (inherited from CodeAccessPermission) Asserts that the calling code can access the resource identified by the current permission object, even if callers have not been granted permission to access the resource. Calling the Assert method stops the check on previous callers in the call chain. Therefore, even if previous callers do not have the requisite permissions, they can still access resources.

Warning: Because calling the Assert method removes the requirement that all code in the call chain must be granted permission to access the specified resource, it can open up security holes if used incorrectly or inappropriately. Therefore, it should be used with great caution.

CheckDemand (inherited from CodeAccessPermission) When implemented by a subclass of CodeAccessPermission, this method determines whether the current permission object represents the ability to access the resource in the manner specified by the demand argument.
Copy Creates and returns an identical copy of the current permission object.
Demand (inherited from CodeAccessPermission) Determines at run-time whether all callers in the call chain have been granted the permission specified by the current permission object.
DemandImmediate (inherited from CodeAccessPermission) Determines whether the immediate caller of the code that calls this method has been granted the permission specified by the current permission object.
Deny (inherited from CodeAccessPermission) Deny callers in the call chain the ability to access the resource specified by the current permission object. This method prevents callers from accessing the protected resource even if they have been granted permission to access it.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
FromXml Reconstructs a security object with a given state from an XML encoding.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
Intersect Creates and returns a permission that is the intersection of the current permission object and a target permission object.
IsSubsetOf Determines whether the current permission object is a subset of the specified permission.
PermitOnly (inherited from CodeAccessPermission) Ensures that only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources.
ToString (inherited from CodeAccessPermission) Creates and returns a String representation for the current permission object.
ToXml Creates an XML encoding, of the security object and its current state.
Union Creates a permission that is the union of the permission object and the target parameter permission object.

Protected:

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

SiteIdentityPermission Class | System.Security.Permissions Namespace