XMLSchemaReferences.Add Method

Returns a XMLSchemaReference that represents a schema applied to a document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    ByRef NamespaceURI As Object, _
    ByRef Alias As Object, _
    ByRef FileName As Object, _
    InstallForAllUsers As Boolean _
) As XMLSchemaReference
'Usage
Dim instance As XMLSchemaReferences
Dim NamespaceURI As Object
Dim Alias As Object
Dim FileName As Object
Dim InstallForAllUsers As Boolean
Dim returnValue As XMLSchemaReference

returnValue = instance.Add(NamespaceURI, _
    Alias, FileName, InstallForAllUsers)
XMLSchemaReference Add(
    ref Object NamespaceURI,
    ref Object Alias,
    ref Object FileName,
    bool InstallForAllUsers
)

Parameters

  • NamespaceURI
    Type: System.Object%
    Optional String. The name of the schema as defined in the schema. The Namespace parameter is case-sensitive and must be spelled exactly as it appears in the schema. If the specified namespace cannot be found in any of the schemas attached to the document, an error is displayed.
  • 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.
  • FileName
    Type: System.Object%
    Optional String. The path and file name of the schema. This may be a local file path, a network path, or an Internet address.
  • 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.XMLSchemaReference

See Also

Reference

XMLSchemaReferences Interface

XMLSchemaReferences Members

Microsoft.Office.Interop.Word Namespace