Compartir a través de


SynonymsAttribute Class

Provides a comma-delimited list of connection property names that are synonymous with a primary connection property name.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

<AttributeUsageAttribute(AttributeTargets.Property)> _
Public NotInheritable Class SynonymsAttribute _
    Inherits Attribute

Dim instance As SynonymsAttribute
[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class SynonymsAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property)]
public ref class SynonymsAttribute sealed : public Attribute
public final class SynonymsAttribute extends Attribute

Remarks

A provider should apply this attribute to a connection property when there are multiple property names that can refer to the same property value. It is used by the base DataConnectionProperties class to implement the GetSynonyms method, and allows changing the property name to use when graphically building connection properties.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Data.SynonymsAttribute

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

SynonymsAttribute Members

Microsoft.VisualStudio.Data Namespace

Attribute