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 | |
---|---|---|
DomainServiceClientCodeGeneratorAttribute(String, String) | Initializes a new instance of the DomainServiceClientCodeGeneratorAttribute class for a generator named generatorName that supports a specified language. | |
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 | |
---|---|---|
ContractName | (Inherited from ExportAttribute.) | |
ContractType | (Inherited from ExportAttribute.) | |
GeneratorName | Gets the name of this generator. | |
Language | Gets the language supported by this code generator. | |
TypeId | (Inherited from Attribute.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Attribute.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Attribute.) | |
GetType | (Inherited from Object.) | |
IsDefaultAttribute | (Inherited from Attribute.) | |
Match | (Inherited from Attribute.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames | (Inherited from Attribute.) | |
_Attribute.GetTypeInfo | (Inherited from Attribute.) | |
_Attribute.GetTypeInfoCount | (Inherited from Attribute.) | |
_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.