This documentation is archived and is not being maintained.

TemplateInstanceAttribute Members

Defines a metadata attribute that is used to specify the number of allowed instances of a template. This class cannot be inherited.

The following tables list the members exposed by the TemplateInstanceAttribute type.

  Name Description
Public method TemplateInstanceAttribute Initializes a new instance of the TemplateInstanceAttribute class with the specified TemplateInstance enumeration value.
Top

  Name Description
Public field Static Default Defines the default value for the TemplateInstanceAttribute class. This field is read-only.
Public field Static Multiple Creates an instance of the TemplateInstanceAttribute class as one representing a template that will be instantiated multiple times. This field is read-only.
Public field Static Single Creates an instance of the TemplateInstanceAttribute class as one representing a template that will be instantiated a single time. This field is read-only.
Top

  Name Description
Public property Instances The TemplateInstance enumeration value that the current template instance represents.
Public property TypeId  When implemented in a derived class, gets a unique identifier for this Attribute.(inherited from Attribute)
Top

(see also Protected Methods )
  Name Description
Public method Equals Overloaded. Overridden. Determines if the current instance of the TemplateInstanceAttribute class is equal to a specified object.
Public method Static GetCustomAttribute  Overloaded. Retrieves a custom attribute of a specified type applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method Static GetCustomAttributes  Overloaded. Retrieves an array of the custom attributes applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method GetHashCode Overridden. Gets a hash code for this TemplateInstanceAttribute object.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IsDefaultAttribute Overridden. Returns a value indicating if the current TemplateInstanceAttribute object is the same as the default TemplateInstanceAttribute object.
Public method Static IsDefined  Overloaded. Determines whether any custom attributes of a specified type are applied to an assembly, module, type member, or method parameter. (inherited from Attribute)
Public method Match  When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (inherited from Attribute)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
Show: