ExternalDataExchangeAttribute Classe

Definição

Cuidado

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Marca uma interface como uma interface de serviço local. Essa classe não pode ser herdada.

public ref class ExternalDataExchangeAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)]
public sealed class ExternalDataExchangeAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ExternalDataExchangeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)>]
type ExternalDataExchangeAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ExternalDataExchangeAttribute = class
    inherit Attribute
Public NotInheritable Class ExternalDataExchangeAttribute
Inherits Attribute
Herança
ExternalDataExchangeAttribute
Atributos

Exemplos

O exemplo de código a seguir mostra como definir o ExternalDataExchangeAttribute em uma interface. Este exemplo de código faz parte do exemplo do SDK do ActiveDirectoryRoles do arquivo IStartPurchaseOrder.cs. Para obter mais informações, consulte Como usar funções do Active Directory.

[ExternalDataExchangeAttribute()]
public interface IStartPurchaseOrder
{
    event EventHandler<InitiatePOEventArgs> InitiatePurchaseOrder;
}

Comentários

Aviso

Este material discute tipos e namespaces obsoletos. Para obter mais informações, consulte Deprecated Types in Windows Workflow Foundation 4.5 (Tipos preteridos no Windows Workflow Foundation 4.5).

Uma classe que implementa uma interface de serviço local deve ser adicionada ao ExternalDataExchangeService e pode ser usada por CallExternalMethodActivity e HandleExternalEventActivity.

Eventos em interfaces atribuídas devem ExternalDataExchangeAttribute ter dados de evento que derivam de ExternalDataEventArgs.

Embora tipos genéricos sejam compatíveis com declarações de evento e método de interface, não há suporte para tipos genéricos para a própria declaração de interface. A interface a seguir não seria válida para uso como um ExternalDataExchange.

public interface IInterfaceName<TCommand>  
{   
    void MethodName(TCommand Request);  
}  

Construtores

ExternalDataExchangeAttribute()

Inicializa uma nova instância do ExternalDataExchangeAttribute.

Propriedades

TypeId

Quando implementado em uma classe derivada, obtém um identificador exclusivo para este Attribute.

(Herdado de Attribute)

Métodos

Equals(Object)

Retorna um valor que indica se essa instância é igual a um objeto especificado.

(Herdado de Attribute)
GetHashCode()

Retorna o código hash para a instância.

(Herdado de Attribute)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
IsDefaultAttribute()

Quando substituído em uma classe derivada, indica se o valor dessa instância é o valor padrão para a classe derivada.

(Herdado de Attribute)
Match(Object)

Quando substituído em uma classe derivada, retorna um valor que indica se essa instância é igual a um objeto especificado.

(Herdado de Attribute)
MemberwiseClone()

Cria uma cópia superficial do Object atual.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.

(Herdado de Object)

Implantações explícitas de interface

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de expedição.

(Herdado de Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Recupera as informações de tipo para um objeto, que pode ser usado para obter as informações de tipo para uma interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Retorna o número de interfaces de informações do tipo que um objeto fornece (0 ou 1).

(Herdado de Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Fornece acesso a propriedades e métodos expostos por um objeto.

(Herdado de Attribute)

Aplica-se a