ModuleListPageSearchField(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.