Gets a namespace that acts as a unique identifier for the smart tag. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010. .
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Each smart tag type is defined by a namespace so that its identity is unique. A namespace is an XML construct for uniquely identifying a group of XML tags that belong to a logical category. A namespace groups related properties together for easy property discovery and, more importantly, to keep the property names unique.
Property names are constructed by combining the namespace Uniform Resource Identifier (URI) and the tag name. In other words, property names are composed of a namespace URI and a tag name of the namespace URI.
Similarly, smart tag types are defined by a unique namespace URI plus the tag name. A number sign (#) is appended to the namespace URI and is used to separate the namespace URI from its tag name. The format is as follows: namespaceURI#tagname
An example of a smart tag type is urn:schemas-contoso-com:finance#StockTickerSymbol. Here, the namespace URI is urn:schemas-contoso-com:finance, with StockTickerSymbol as the tag name. They are combined to form a fully qualified name of the property, which in this case is a smart tag type.
A smart tag type is a fully qualified description of an XML tag. Therefore, every smart tag type is uniquely identified by its tag name in addition to its namespace. The URI portion of the property name ensures that it is unique and unambiguous. Two properties with the same tag name can be differentiated using namespaces.
The following code example demonstrates a handler for the Action.Click event. The event handler uses the property to display the unique namespace identifier of the smart tag. This code example is part of a larger example provided for Microsoft.Office.Tools.Excel.SmartTag.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.