PeerName Construtores
Definição
Sobrecargas
| PeerName(String) |
Inicializa um novo objeto do tipo PeerName com o valor de String do nome do par totalmente qualificado fornecido.Initializes a new object of type PeerName with the supplied fully qualified peer name String value. |
| PeerName(SerializationInfo, StreamingContext) |
Popula um objeto SerializationInfo com os dados necessários para serializar o PeerName.Populates a SerializationInfo object with the data needed to serialize the PeerName. |
| PeerName(String, PeerNameType) |
Inicializa uma nova instância da classe PeerName.Initializes a new instance of the PeerName class. |
PeerName(String)
public:
PeerName(System::String ^ remotePeerName);
public PeerName (string remotePeerName);
new System.Net.PeerToPeer.PeerName : string -> System.Net.PeerToPeer.PeerName
Public Sub New (remotePeerName As String)
Parâmetros
- remotePeerName
- String
Contém o nome do par a ser codificado como uma instância de PeerName.Contains the peer name to encode as a PeerName instance.
Exceções
remotePeerName é null.remotePeerName is null.
Confira também
Aplica-se a
PeerName(SerializationInfo, StreamingContext)
Popula um objeto SerializationInfo com os dados necessários para serializar o PeerName.Populates a SerializationInfo object with the data needed to serialize the PeerName.
protected:
PeerName(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PeerName (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Net.PeerToPeer.PeerName : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.PeerToPeer.PeerName
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parâmetros
- info
- SerializationInfo
Referência para o objeto que contém os dados necessários para desserializar essa instância.Reference to the object that holds the data needed to deserialize this instance.
- context
- StreamingContext
Contexto que fornece os meios para desserializar os dados.Context that provides the means for deserializing the data. Também conhecido como a fonte dos dados serializados.Also referred to as the source of the serialized data.
Exceções
Um ou mais parâmetros são null.One or more parameters are null.
Comentários
Esse construtor é necessário para desserialização desse tipo.This constructor is required for deserialization of this type.
Confira também
Aplica-se a
PeerName(String, PeerNameType)
public:
PeerName(System::String ^ classifier, System::Net::PeerToPeer::PeerNameType peerNameType);
[System.Security.SecurityCritical]
public PeerName (string classifier, System.Net.PeerToPeer.PeerNameType peerNameType);
[<System.Security.SecurityCritical>]
new System.Net.PeerToPeer.PeerName : string * System.Net.PeerToPeer.PeerNameType -> System.Net.PeerToPeer.PeerName
Public Sub New (classifier As String, peerNameType As PeerNameType)
Parâmetros
- classifier
- String
String que contém o nome do par a ser codificado como um PeerName.String that contains the Peer Name to encode as a PeerName.
- peerNameType
- PeerNameType
Valor de enumeração PeerNameType que especifica o tipo do nome de par a ser criado.PeerNameType enumeration value that specifies the type of peer name to create.
- Atributos
Exceções
O Classifier inclui um ou mais caracteres ilícitos.The Classifier includes one or more illegal characters.
Um ou mais parâmetros são null.One or more parameters are null.
- A identidade padrão usada como base para o PeerName não pôde ser recuperada.- The Default Identity used as the basis of the PeerName could not be retrieved.
- O PeerName não pôde ser criado.- The PeerName could not be created.
Comentários
Esse construtor retorna um objeto do tipo PeerName que contém o nome totalmente qualificado do par.This constructor returns an object of type PeerName that contains the fully qualified name of the peer. Ele também especifica se o nome do par está protegido ou não seguro.It also specifies whether the peer name is secured or unsecured.
Essa instância usa a identidade de par padrão para o usuário atual e o especificado Classifier , além do tipo de nome de par a ser criado com o classificador e o tipo especificados.This instance uses the default peer identity for the current user and the specified Classifier, in addition to the type of peer name to create with the specified classifier and type.