XdmModuleAttribute ClassXdmModuleAttribute ClassXdmModuleAttribute Class

Indicates that a class implements an XDM module.

Inheritance Hierarchy

Syntax

Public Class XdmModuleAttribute _
        Inherits Attribute
public class XdmModuleAttribute : Attribute
public:
ref class XdmModuleAttribute : Attribute^
 
The XdmModuleAttributeXdmModuleAttributeXdmModuleAttribute type exposes the following members.

Constructors

 ConstructorDescription
Public methodXdmModuleAttribute ()XdmModuleAttribute ()XdmModuleAttribute () Initializes a new instance of the XdmModuleAttributeXdmModuleAttributeXdmModuleAttribute class.
Public methodXdmModuleAttribute (string)XdmModuleAttribute (String)XdmModuleAttribute (String^) Initializes a new instance of the XdmModuleAttributeXdmModuleAttributeXdmModuleAttribute class.

Top

Properties

 PropertyDescription
Public propertyTargetNamespaceTargetNamespaceTargetNamespace Gets or sets the target namespace of the module. The target namespace of the exported module.
Public propertyAttribute.TypeIdAttribute.TypeIdAttribute::TypeId When implemented in a derived class, gets a unique identifier for this AttributeAttributeAttribute. (Inherited from System.AttributeSystem.AttributeSystem::Attribute)

Top

Methods

 MethodDescription
Public methodAttribute.EqualsAttribute.EqualsAttribute::Equals Returns a value that indicates whether this instance is equal to a specified object. (Overrides Object.EqualsObject.EqualsObject::Equals)
Protected methodObject.FinalizeObject.FinalizeObject::Finalize Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject is reclaimed by garbage collection. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodAttribute.GetHashCodeAttribute.GetHashCodeAttribute::GetHashCode Returns the hash code for this instance. (Overrides Object.GetHashCodeObject.GetHashCodeObject::GetHashCode)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodAttribute.IsDefaultAttributeAttribute.IsDefaultAttributeAttribute::IsDefaultAttribute When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from System.AttributeSystem.AttributeSystem::Attribute)
Public methodAttribute.MatchAttribute.MatchAttribute::Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from System.AttributeSystem.AttributeSystem::Attribute)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToString Returns a stringStringString that represents the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)

Top

Explicit Interface Implementations

 NameDescription
Explicit interface implementationPrivate methodAttribute.GetIDsOfNamesAttribute.GetIDsOfNamesAttribute::GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from System.AttributeSystem.AttributeSystem::Attribute)
Explicit interface implementationPrivate methodAttribute.GetTypeInfoAttribute.GetTypeInfoAttribute::GetTypeInfo Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from System.AttributeSystem.AttributeSystem::Attribute)
Explicit interface implementationPrivate methodAttribute.GetTypeInfoCountAttribute.GetTypeInfoCountAttribute::GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from System.AttributeSystem.AttributeSystem::Attribute)
Explicit interface implementationPrivate methodAttribute.InvokeAttribute.InvokeAttribute::Invoke Provides access to properties and methods exposed by an object. (Inherited from System.AttributeSystem.AttributeSystem::Attribute)

Top

Remarks

An XDM module exports a number of functions that can be called from an XPath expression, XQuery program, or XSL transformation. In order to use such a module, call the NativeModule<T>NativeModule(Of T)NativeModule<T> method to obtain an XdmModuleXdmModuleXdmModule object which can be added to the LibrariesLibrariesLibraries property.

The TargetNamespaceTargetNamespaceTargetNamespace property can be set to define the target namespace of the module.

Only public static functions with the XdmFunctionAttributeXdmFunctionAttributeXdmFunctionAttribute attribute are exported.