XMLNamespaces.Add Method
Returns a XMLNamespace object that represents a schema that is added to the Schema Library and made available to users in Microsoft Word.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
Path As String, _
ByRef NamespaceURI As Object, _
ByRef Alias As Object, _
InstallForAllUsers As Boolean _
) As XMLNamespace
'Usage
Dim instance As XMLNamespaces
Dim Path As String
Dim NamespaceURI As Object
Dim Alias As Object
Dim InstallForAllUsers As Boolean
Dim returnValue As XMLNamespace
returnValue = instance.Add(Path, NamespaceURI, _
Alias, InstallForAllUsers)
XMLNamespace Add(
string Path,
ref Object NamespaceURI,
ref Object Alias,
bool InstallForAllUsers
)
Parameters
- Path
Type: System.String
Required String. The path and file name of the schema. This may be a local file path, a network path, or an Internet address.
- NamespaceURI
Type: System.Object%
Optional String. The namespace Uniform Resource Indicator as specified in the schema. The NamespaceURI parameter is case-sensitive and must be spelled exactly as specified in schema.
- Alias
Type: System.Object%
Optional String. The name of the schema as it appears on the Schemas tab in the Templates and Add-ins dialog box.
- InstallForAllUsers
Type: System.Boolean
Optional Boolean. True if all users that log on to a computer can access and use the new schema. The default is False.
Return Value
Type: Microsoft.Office.Interop.Word.XMLNamespace