XdmFunctionAttribute ClassXdmFunctionAttribute ClassXdmFunctionAttribute Class

This attribute is used to export a function in an XDM module.

Inheritance Hierarchy

Syntax

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

Constructors

 ConstructorDescription
Public methodXdmFunctionAttribute ()XdmFunctionAttribute ()XdmFunctionAttribute () Initializes a new instance of the XdmFunctionAttributeXdmFunctionAttributeXdmFunctionAttribute class.
Public methodXdmFunctionAttribute (string)XdmFunctionAttribute (String)XdmFunctionAttribute (String^) Initializes a new instance of the XdmFunctionAttributeXdmFunctionAttributeXdmFunctionAttribute class with the specified local name.

Top

Properties

 PropertyDescription
Public propertyLocalNameLocalNameLocalName The local name of the exported function.
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

The LocalNameLocalNameLocalName property can be used to specify the name of the exported function in XQuery.

This attribute is ignored unless the containing object is marked with XdmModuleAttributeXdmModuleAttributeXdmModuleAttribute.

If the function does not satisfy the conditions specified for NativeModule<T>NativeModule(Of T)NativeModule<T> then a NotSupportedExceptionNotSupportedExceptionNotSupportedException will be thrown when NativeModule<T>NativeModule(Of T)NativeModule<T> is called for the containing type.

The XdmTypeAttributeXdmTypeAttributeXdmTypeAttribute can be used to specify the XDM types of the arguments and the return type of the exported function.