Share via


FormRegionNameAttribute Class

Definition

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

public ref class FormRegionNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class FormRegionNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type FormRegionNameAttribute = class
    inherit Attribute
Public NotInheritable Class FormRegionNameAttribute
Inherits Attribute
Inheritance
FormRegionNameAttribute
Attributes

Remarks

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".

Constructors

FormRegionNameAttribute(String)

Initializes a new instance of the FormRegionNameAttribute class.

Properties

Name

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

Applies to