FormRegionNameAttribute Class

 

Represents the name that uniquely identifies a form region across all Outlook add-ins.

Namespace:   Microsoft.Office.Tools.Outlook
Assembly:  Microsoft.Office.Tools.v4.0.Framework (in Microsoft.Office.Tools.v4.0.Framework.dll)

System::Object
  System::Attribute
    Microsoft.Office.Tools.Outlook::FormRegionNameAttribute

[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, 
	Inherited = false)]
public ref class FormRegionNameAttribute sealed : Attribute

NameDescription
System_CAPS_pubmethodFormRegionNameAttribute(String^)

Initializes a new instance of the FormRegionNameAttribute class.

NameDescription
System_CAPS_pubpropertyName

Gets a name that uniquely identifies the form region across all add-ins.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Because Outlook can load more than one add-in and each add-in can contain multiple form regions, you should ensure that the Name property of the FormRegionNameAttribute class is set to a unique name to avoid a name collision.

When you add an Outlook Form Region item to the project, Visual Studio automatically adds this attribute to the form region factory class in the form region code file. It sets the name of the attribute to the add-in name plus the form region item, separated by a dot—for example, "OutlookAddIn1.FormRegion1".

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

Return to top
Show: