Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

PeerName Class

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

System.Object
  System.Net.PeerToPeer.PeerName

Namespace:  System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)
[SerializableAttribute]
public class PeerName : ISerializable, IEquatable<PeerName>

The PeerName type exposes the following members.

  NameDescription
Public methodPeerName(String)Initializes a new object of type PeerName with the supplied fully qualified peer name String value.
Protected methodPeerName(SerializationInfo, StreamingContext)Populates a SerializationInfo object with the data needed to serialize the PeerName.
Public methodPeerName(String, PeerNameType)Initializes a new instance of the PeerName class.
Top
  NameDescription
Public propertyAuthorityReturns a string that specifies the Authority used by this PeerName object.
Public propertyClassifierReturns a string that contains the classifier for a peer-to-peer PeerName.
Public propertyIsSecuredGets a Boolean value that specifies whether this is a secured peer name.
Public propertyPeerHostNameGets 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.
Top
  NameDescription
Public methodStatic memberCreateFromPeerHostNameCreates a new instance of the specified PeerHostName object with the specified peer host name.
Public methodStatic memberCreateRelativePeerNameCreates a new PeerName by replacing the Classifier field defined on the supplied PeerName object with the specified classifier string value.
Public methodEquals(Object)Determines whether the content of this PeerName is equal to the content of another object. (Overrides Object.Equals(Object).)
Public methodEquals(PeerName)Performs a case-sensitive comparison of the current PeerName and the specified peer name.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeOverrides the GetHashCode method. (Overrides Object.GetHashCode().)
Protected methodGetObjectDataPopulates a serialization information object with the data needed to serialize the PeerName.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string representation of the current PeerName object. (Overrides Object.ToString().)
Top
  NameDescription
Explicit interface implemetationPrivate methodISerializable.GetObjectDataImplements the ISerializable interface and returns the data needed to serialize the PeerName instance.
Top

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.