Removes a query field from the schema definition.
Syntax
Parameters
- item
- A field to remove.
Return Value
A reference to this instance after the Remove operation has completed.
Exceptions
| Exception | Description |
| System.ArgumentNullException | The item is a null reference (Nothing in Visual Basic). |
Example
The following code example demonstrates how to remove the query field from the existing
SchemaBuilder.
| C# | Copy Code |
|---|
// Remove query field with name 'OrderDate'.
schemaBuilder.RemoveQueryField(schemaBuilder.QueryFields["OrderDate"]); |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also