This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
SocketPermission Members
Public:
Constructor
Methods
AddPermission |
Adds a permission to the set of permissions for a transport address. |
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 |
Checks the System.Security.Permissions.SocketPermission against a permission demand. |
Copy |
Creates a copy of a System.Security.Permissions.SocketPermission instance. |
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 |
[To be supplied.] |
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 |
Returns the logical intersection between two System.Security.Permissions.SocketPermission instances. |
IsSubsetOf |
Compares two System.Security.Permissions.SocketPermission instances. |
IsUnrestricted |
Checks the overall permission state of the object. |
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 |
[To be supplied.] |
Union |
Returns the logical union between two System.Security.Permissions.SocketPermission instances. |
Fields
AllPorts |
Defines a constant representing all ports. |
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
SocketPermission Class | System.Net Namespace