PeerName Class

PeerName Class

.NET Framework (current version)
 

Specifies the values that define a peer-to-peer PeerName object. A peer name is typically a string used to identify a peer resource.

Namespace:   System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)

System.Object
  System.Net.PeerToPeer.PeerName

[SerializableAttribute]
public class PeerName : ISerializable, IEquatable<PeerName>

NameDescription
System_CAPS_protmethodPeerName(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data needed to serialize the PeerName.

System_CAPS_pubmethodPeerName(String)

Initializes a new object of type PeerName with the supplied fully qualified peer name String value.

System_CAPS_pubmethodPeerName(String, PeerNameType)

Initializes a new instance of the PeerName class.

NameDescription
System_CAPS_pubpropertyAuthority

Returns a string that specifies the Authority used by this PeerName object.

System_CAPS_pubpropertyClassifier

Returns a string that contains the classifier for a peer-to-peer PeerName.

System_CAPS_pubpropertyIsSecured

Gets a Boolean value that specifies whether this is a secured peer name.

System_CAPS_pubpropertyPeerHostName

Gets the name of the peer-to-peer host. This is a DNS-encoded version of the PeerName which is equivalent to a PeerHostName in that they are both identifiers. The difference between the two is visual representation.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateFromPeerHostName(String)

Creates a new instance of the specified PeerHostName object with the specified peer host name.

System_CAPS_pubmethodSystem_CAPS_staticCreateRelativePeerName(PeerName, String)

Creates a new PeerName by replacing the Classifier field defined on the supplied PeerName object with the specified classifier string value.

System_CAPS_pubmethodEquals(Object)

Determines whether the content of this PeerName is equal to the content of another object. (Overrides Object.Equals(Object).)

System_CAPS_pubmethodEquals(PeerName)

Performs a case-sensitive comparison of the current PeerName and the specified peer name.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Overrides the GetHashCode method.(Overrides Object.GetHashCode().)

System_CAPS_protmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a serialization information object with the data needed to serialize the PeerName.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representation of the current PeerName object.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data needed to serialize the PeerName instance.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft