ExternalDataExchangeAttribute Classe

Definição

Atenção

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. Esta 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

Observações

Warning

Este material discute tipos e namespaces que estão obsoletos. Para mais informações, consulte Tipos Descontinuados no Windows Workflow Foundation 4.5.

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

Eventos em interfaces atribuídas a ExternalDataExchangeAttribute devem ter dados de eventos derivados de ExternalDataEventArgs.

Embora tipos genéricos sejam suportados para declarações de métodos de interface e eventos, tipos genéricos não são suportados para a declaração de interface em si. A seguinte interface não seria válida para uso como um ExternalDataExchange.

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

Construtores

Name Description
ExternalDataExchangeAttribute()
Obsoleto.

Inicializa uma nova instância do ExternalDataExchangeAttribute.

Propriedades

Name Description
TypeId
Obsoleto.

Quando implementado numa classe derivada, obtém um identificador único para esta Attribute.

(Herdado de Attribute)

Métodos

Name Description
Equals(Object)
Obsoleto.

Devolve um valor que indica se esta instância é igual a um objeto especificado.

(Herdado de Attribute)
GetHashCode()
Obsoleto.

Devolve o código de hash para esta instância.

(Herdado de Attribute)
GetType()
Obsoleto.

Obtém o Type da instância atual.

(Herdado de Object)
IsDefaultAttribute()
Obsoleto.

Quando sobrescrito numa classe derivada, indica se o valor desta instância é o valor padrão para a classe derivada.

(Herdado de Attribute)
Match(Object)
Obsoleto.

Quando sobrescrito numa classe derivada, devolve um valor que indica se esta instância é igual a um objeto especificado.

(Herdado de Attribute)
MemberwiseClone()
Obsoleto.

Cria uma cópia superficial do atual Object.

(Herdado de Object)
ToString()
Obsoleto.

Devolve uma cadeia que representa o objeto atual.

(Herdado de Object)

Implementações de Interface Explícita

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
Obsoleto.

Mapeia um conjunto de nomes para um conjunto correspondente de identificadores de despacho.

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

Recupera a informação de tipo de um objeto, que pode ser usada para obter a informação de tipo para uma interface.

(Herdado de Attribute)
_Attribute.GetTypeInfoCount(UInt32)
Obsoleto.

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

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

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

(Herdado de Attribute)

Aplica-se a