Name Property

This property specifies the name of the column.

Syntax

IColumn.Name

Remarks

The Name property is a text string that must begin with a lower-case letter (i.e., a-z) and can contain only other lower-case letters (a-z), integers (0-9), and underscore characters (_). Name cannot include spaces and must be unique in the Search schema.

Although the value for Name can contain lower- and upper-case characters, Search does not consider case when determining uniqueness. For example, the Name value MyTestMachine is not unique if the Name value MYTESTMACHINE already exists in the schema.

The Name property has no functional significance, although it must be unique and properly formed. Search identifies the column based on the entry in the DefineColumns.txt file that has a PropGuid and PropPid which matches this column's PropGuid and PropPid properties. Alternatively, you can use a DefineColumn call made in a Search script.

For column attributes such as HTML Meta tags where the PropPid is based on the meta name attribute, the Name property is not the same as PropPid. For such tags, PropPid can be an arbitrary string that can even contain spaces. When creating a column entry for such a column, Microsoft recommends that you choose a value for the Name property that suggests the PropPid, but contains only the allowed characters.

Search does not validate the Name property until you call the ISearchSchema.Save method.

Example

See Creating an IColumn Object.

See Also

Description


© 1997-1998 Microsoft Corporation. All rights reserved.