Share via


ModuleListPageSearchField(String, String) Constructor

Definition

Initializes a new instance of the ModuleListPageSearchField class.

public:
 ModuleListPageSearchField(System::String ^ name, System::String ^ text);
public ModuleListPageSearchField (string name, string text);
new Microsoft.Web.Management.Client.ModuleListPageSearchField : string * string -> Microsoft.Web.Management.Client.ModuleListPageSearchField
Public Sub New (name As String, text As String)

Parameters

name
String

The name of the object.

text
String

The name of the object, usually from a resource.

Examples

The following example displays "Colour" and "Type 2" in the Go split button on the Filter toolbar in IIS Manager.

protected override ModuleListPageSearchField[] 
    SearchFields {
    get {
        if (_searchFields != null)
            return _searchFields;

        _searchFields =
            new ModuleListPageSearchField[] {
                new ModuleListPageSearchField(
                "Color", "Colour"),
                new ModuleListPageSearchField(
                "Type 1", "Type 2")
            };
        return _searchFields;
    }
} 

Remarks

The text parameter is generally the localized version of the name parameter.

Applies to