Udostępnij za pośrednictwem


FormRegionNameAttribute Class (2007 System)

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

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := False)> _
Public NotInheritable Class FormRegionNameAttribute _
    Inherits Attribute
'Usage
Dim instance As FormRegionNameAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class FormRegionNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = false)]
public ref class FormRegionNameAttribute sealed : public Attribute
public final class FormRegionNameAttribute extends Attribute

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 Tools for Office 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".

Inheritance Hierarchy

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

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

FormRegionNameAttribute Members

Microsoft.Office.Tools.Outlook Namespace