PeerApplication Construtores
Definição
Inicializa uma nova instância PeerApplication.Initializes a new PeerApplication instance.
Sobrecargas
| PeerApplication() |
Inicializa uma nova instância padrão do tipo PeerApplication.Initializes a new default instance of the PeerApplication type. |
| PeerApplication(SerializationInfo, StreamingContext) |
Inicializa uma nova instância do tipo PeerApplication com os dados necessários para serialização.Initializes a new instance of the PeerApplication type with the data required for serialization. |
| PeerApplication(Guid, String, Byte[], String, String, PeerScope) |
Inicializa uma nova instância de PeerApplication com a ID do aplicativo, a descrição, o escopo e os elementos de dados.Initializes a new PeerApplication instance with the supplied application ID, description, scope, and data elements. |
Comentários
As propriedades e globalmente exclusivas dessa Id PeerApplicationRegistrationType instância devem ser definidas antes que o aplicativo possa ser registrado com êxito.The globally unique Id and PeerApplicationRegistrationType properties of this instance must be set before the application can successfully be registered.
PeerApplication()
Inicializa uma nova instância padrão do tipo PeerApplication.Initializes a new default instance of the PeerApplication type.
public:
PeerApplication();
public PeerApplication ();
Public Sub New ()
Comentários
As propriedades e globalmente exclusivas dessa Id PeerApplicationRegistrationType instância devem ser definidas antes que o aplicativo possa ser registrado com êxito.The globally unique Id and PeerApplicationRegistrationType properties of this instance must be set before the application can successfully be registered.
Aplica-se a
PeerApplication(SerializationInfo, StreamingContext)
Inicializa uma nova instância do tipo PeerApplication com os dados necessários para serialização.Initializes a new instance of the PeerApplication type with the data required for serialization.
protected:
PeerApplication(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected PeerApplication (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.PeerToPeer.Collaboration.PeerApplication : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.PeerToPeer.Collaboration.PeerApplication
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parâmetros
- serializationInfo
- SerializationInfo
O SerializationInfo associado ao PeerEndPoint.The SerializationInfo associated with the PeerEndPoint.
- streamingContext
- StreamingContext
O destino de serialização associado ao PeerEndPoint.The serialization destination associated with the PeerEndPoint.
Comentários
Retorna um PeerApplication objeto com um nome totalmente qualificado pelo PeerName objeto dentro dele.Returns a PeerApplication object with a name fully qualified by the PeerName object within it.
As propriedades e globalmente exclusivas dessa Id PeerApplicationRegistrationType instância devem ser definidas antes que o aplicativo possa ser registrado com êxito.The globally unique Id and PeerApplicationRegistrationType properties of this instance must be set before the application can successfully be registered.
Confira também
Aplica-se a
PeerApplication(Guid, String, Byte[], String, String, PeerScope)
Inicializa uma nova instância de PeerApplication com a ID do aplicativo, a descrição, o escopo e os elementos de dados.Initializes a new PeerApplication instance with the supplied application ID, description, scope, and data elements.
public:
PeerApplication(Guid id, System::String ^ description, cli::array <System::Byte> ^ data, System::String ^ path, System::String ^ commandLineArgs, System::Net::PeerToPeer::Collaboration::PeerScope peerScope);
public PeerApplication (Guid id, string description, byte[] data, string path, string commandLineArgs, System.Net.PeerToPeer.Collaboration.PeerScope peerScope);
new System.Net.PeerToPeer.Collaboration.PeerApplication : Guid * string * byte[] * string * string * System.Net.PeerToPeer.Collaboration.PeerScope -> System.Net.PeerToPeer.Collaboration.PeerApplication
Public Sub New (id As Guid, description As String, data As Byte(), path As String, commandLineArgs As String, peerScope As PeerScope)
Parâmetros
- id
- Guid
Um Guid especificado pelo usuário usado para identificar o PeerApplication.A user-specified Guid used to identify the PeerApplication.
- description
- String
Uma descrição String do aplicativo de pares.A String description of the peer application.
- data
- Byte[]
Um objeto de dados binário a ser associado ao aplicativo de pares, como uma imagem pequena.A binary data object to associate with the peer application, such as a small image.
- path
- String
O caminho do sistema de arquivos local para o aplicativo de pares.The local file system path to the peer application.
- commandLineArgs
- String
Argumentos de linha de comando para iniciar o aplicativo de pares.Command-line arguments for starting the peer application.
- peerScope
- PeerScope
O escopo no qual o aplicativo será registrado para colaboração entre pares.The scope in which the application will be registered for peer collaboration.
Exceções
- O tamanho do objeto de dados binário não pode ser menor que 1 ou maior que 16 mil.- Length of the binary data object cannot be less than one or greater than 16k.
id é definido como null.id is set to null.
Comentários
As propriedades e globalmente exclusivas dessa Id PeerApplicationRegistrationType instância devem ser definidas antes que o aplicativo possa ser registrado com êxito.The globally unique Id and PeerApplicationRegistrationType properties of this instance must be set before the application can successfully be registered.