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::TypeIdWhen 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::EqualsReturns a value that indicates whether this instance is equal to a specified object.(Overrides Object.EqualsObject.EqualsObject::Equals)
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodAttribute.GetHashCodeAttribute.GetHashCodeAttribute::GetHashCodeReturns the hash code for this instance.(Overrides Object.GetHashCodeObject.GetHashCodeObject::GetHashCode)
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodAttribute.IsDefaultAttributeAttribute.IsDefaultAttributeAttribute::IsDefaultAttributeWhen 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::MatchWhen 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::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.ToStringObject.ToStringObject::ToStringReturns a string that represents the current object.(Inherited from System.ObjectSystem.ObjectSystem::Object)

Top

Explicit Interface Implementations

 NameDescription
Explicit interface implementationPrivate methodAttribute.GetIDsOfNamesAttribute.GetIDsOfNamesAttribute::GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers.(Inherited from System.AttributeSystem.AttributeSystem::Attribute)
Explicit interface implementationPrivate methodAttribute.GetTypeInfoAttribute.GetTypeInfoAttribute::GetTypeInfoRetrieves 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::GetTypeInfoCountRetrieves 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::InvokeProvides 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.