Partager via


FormPropertyBag Class

 

Used to pass data from built-in UI to an adorner.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel.Adorners
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.WindowsServerSolutions.Administration.ObjectModel.Adorners.FormPropertyBag

Syntax

[SerializableAttribute]
public class FormPropertyBag : MarshalByRefObject
[SerializableAttribute]
public ref class FormPropertyBag : MarshalByRefObject
<SerializableAttribute>
Public Class FormPropertyBag
    Inherits MarshalByRefObject

Properties

Name Description
System_CAPS_pubproperty AddinData

Retrieves optional add-in data from a custom add-in UI.

System_CAPS_pubproperty FirstName

Retrieves the first name of a user from the UI.

System_CAPS_pubproperty LastName

Retrieves the last name of the user from a UI.

System_CAPS_pubproperty Password

Retrieves the password.

System_CAPS_pubproperty UserName

Retrieves the user name.

Methods

Name Description
System_CAPS_pubmethod CreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod InitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

For more information on using this class, see Extending and Replacing the Email UI.

Examples

The following code describes using FormPropertyBag to pass data into an overridden CreatePage method. For the complete sample, see Quickstart: Creating a Hosted Email Adapter.

public override ICollection<AddinPageContent> CreatePages(FormPropertyBag propertyBag)
{
    List<AddinPageContent> list = new List<AddinPageContent>();
    content = new DistributionGroupTabContent(propertyBag)
    {
        Title = Resources.DGTab_Name,
        HelpLink = null,
        HelpLinkText = null
    }; 
    list.Add(content);
    return list;
}

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

Microsoft.WindowsServerSolutions.Administration.ObjectModel.Adorners Namespace

Return to top