Compartilhar via


DomainServiceClientCodeGeneratorAttribute Class

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Attribute used for all code generators that support IDomainServiceClientCodeGenerator.

Inheritance Hierarchy

System.Object
  System.Attribute
    System.ComponentModel.Composition.ExportAttribute
      Microsoft.ServiceModel.DomainServices.Tools.DomainServiceClientCodeGeneratorAttribute

Namespace:  Microsoft.ServiceModel.DomainServices.Tools
Assembly:  Microsoft.ServiceModel.DomainServices.Tools (in Microsoft.ServiceModel.DomainServices.Tools.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)> _
<MetadataAttributeAttribute> _
Public NotInheritable Class DomainServiceClientCodeGeneratorAttribute _
    Inherits ExportAttribute _
    Implements ICodeGeneratorMetadata
'Usage
Dim instance As DomainServiceClientCodeGeneratorAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
[MetadataAttributeAttribute]
public sealed class DomainServiceClientCodeGeneratorAttribute : ExportAttribute, 
    ICodeGeneratorMetadata
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
[MetadataAttributeAttribute]
public ref class DomainServiceClientCodeGeneratorAttribute sealed : public ExportAttribute, 
    ICodeGeneratorMetadata
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
[<MetadataAttributeAttribute>]
type DomainServiceClientCodeGeneratorAttribute =  
    class
        inherit ExportAttribute
        interface ICodeGeneratorMetadata
    end
public final class DomainServiceClientCodeGeneratorAttribute extends ExportAttribute implements ICodeGeneratorMetadata

The DomainServiceClientCodeGeneratorAttribute type exposes the following members.

Constructors

  Name Description
Public method DomainServiceClientCodeGeneratorAttribute(String, String) Initializes a new instance of the DomainServiceClientCodeGeneratorAttribute class for a generator named generatorName that supports a specified language.
Public method DomainServiceClientCodeGeneratorAttribute(Type, String) Initializes a new instance of the DomainServiceClientCodeGeneratorAttribute class for a generator name specified by the generatorType that supports a specified language.

Top

Properties

  Name Description
Public property ContractName (Inherited from ExportAttribute.)
Public property ContractType (Inherited from ExportAttribute.)
Public property GeneratorName Gets the name of this generator.
Public property Language Gets the language supported by this code generator.
Public property TypeId (Inherited from Attribute.)

Top

Methods

  Name Description
Public method Equals (Inherited from Attribute.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.Invoke (Inherited from Attribute.)

Top

Remarks

This attribute is derived from ExportAttribute. It exports both the code generator of type IDomainServiceClientCodeGenerator as well as the metadata that describes the code generator.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ServiceModel.DomainServices.Tools Namespace