mscorlib(4.0.0.0) API with additions
System.Net.EndpointPermission Class Reference

Defines an endpoint that is authorized by a T:System.Net.SocketPermission instance. More...

Public Member Functions

override bool Equals (object obj)
 Determines whether the specified Object is equal to the current Object. More...
 
override int GetHashCode ()
 Serves as a hash function for a particular type. More...
 
override string ToString ()
 Returns a string that represents the current T:System.Net.EndpointPermission instance. More...
 

Public Attributes

string Hostname => hostname
 Gets the DNS host name or IP address of the server that is associated with this endpoint. More...
 
TransportType Transport => transport
 Gets the transport type that is associated with this endpoint. More...
 
int Port => port
 Gets the network port number that is associated with this endpoint. More...
 

Detailed Description

Defines an endpoint that is authorized by a T:System.Net.SocketPermission instance.

Definition at line 8 of file EndpointPermission.cs.

Member Function Documentation

◆ Equals()

override bool System.Net.EndpointPermission.Equals ( object  obj)

Determines whether the specified Object is equal to the current Object.

Parameters
objThe T:System.Object to compare with the current Object.
Returns
true if the specified Object is equal to the current Object; otherwise, false.

Definition at line 119 of file EndpointPermission.cs.

◆ GetHashCode()

override int System.Net.EndpointPermission.GetHashCode ( )

Serves as a hash function for a particular type.

Returns
A hash code for the current T:System.Object.

Definition at line 139 of file EndpointPermission.cs.

◆ ToString()

override string System.Net.EndpointPermission.ToString ( )

Returns a string that represents the current T:System.Net.EndpointPermission instance.

Returns
A string that represents the current T:System.Net.EndpointPermission instance.

Definition at line 273 of file EndpointPermission.cs.

Member Data Documentation

◆ Hostname

string System.Net.EndpointPermission.Hostname => hostname

Gets the DNS host name or IP address of the server that is associated with this endpoint.

Returns
A string that contains the DNS host name or IP address of the server.

Definition at line 39 of file EndpointPermission.cs.

◆ Port

int System.Net.EndpointPermission.Port => port

Gets the network port number that is associated with this endpoint.

Returns
The network port number that is associated with this request, or F:System.Net.SocketPermission.AllPorts.

Definition at line 47 of file EndpointPermission.cs.

◆ Transport

TransportType System.Net.EndpointPermission.Transport => transport

Gets the transport type that is associated with this endpoint.

Returns
One of the T:System.Net.TransportType values.

Definition at line 43 of file EndpointPermission.cs.


The documentation for this class was generated from the following file: