System.Net.EndpointPermission Class

Assembly: System.dll
Namespace: System.Net
Summary
Defines an endpoint that is authorized by a SocketPermission instance.
C# Syntax:
[Serializable]
public class EndpointPermission
Remarks
The EndpointPermission class defines a network endpoint, including host name, network port number, and transport type used to make the connection.
See also:
System.Net Namespace

System.Net.EndpointPermission Member List:

Public Properties
Hostname Read-only

Gets the DNS host name or IP address of the server associated with this endpoint.
Port Read-only

Gets the network port number associated with this endpoint.
Transport Read-only

Gets the transport type associated with this endpoint.
Public Methods
Equals Overridden:
Supports the Shared Source CLI infrastructure and is not intended to be used directly from your code
GetHashCode Overridden:
Supports the Shared Source CLI infrastructure and is not intended to be used directly from your code
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString Overridden:
Returns a string that represents the current EndpointPermission instance.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Net.EndpointPermission Member Details

Property: Hostname (read-only)
Summary
Gets the DNS host name or IP address of the server associated with this endpoint.
C# Syntax:
public string Hostname {get;}

Return to top


Property: Port (read-only)
Summary
Gets the network port number associated with this endpoint.
C# Syntax:
public int Port {get;}

Return to top


Property: Transport (read-only)
Summary
Gets the transport type associated with this endpoint.
C# Syntax:
public TransportType Transport {get;}

Return to top


Overridden Method: Equals(
   object obj
)
Summary
Supports the Shared Source CLI infrastructure and is not intended to be used directly from your code
C# Syntax:
public override bool Equals(
   object obj
);
Parameters:

obj

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~EndpointPermission();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: GetHashCode()
Summary
Supports the Shared Source CLI infrastructure and is not intended to be used directly from your code
C# Syntax:
public override int GetHashCode();

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: ToString()
Summary
Returns a string that represents the current EndpointPermission instance.
C# Syntax:
public override string ToString();
Return Value:
A string that represents the current EndpointPermission instance.
Remarks
The EndpointPermission.ToString method returns a string representing the contents for the EndpointPermission instance. The string is in the form EndpointPermission.Hostname # EndpointPermission.Port # EndpointPermission.Transport.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.