INameFactory Interface

Provides access to members that work with the Name factory.

Description

The INameFactory interface provides methods for packaging and unpackaging ESRI data objects when implementing your own custom drag and drop behaviour.

Members

Name Description
Method Create Finds the correct name-string parser for the given name string, and uses it to create a new Name object.
Method PackageNames Packages the set of names into a VARIANT (typically for initiating a drag operation).
Method UnpackageNames Unpackages the given VARIANT into a set of Name objects (typically for responding to a drop operation).

INameFactory.Create Method

Finds the correct name-string parser for the given name string, and uses it to create a new Name object.

Public Function Create ( _
    ByVal NameString As String _
) As IName
public IName Create (
    string NameString
);

Description

The Create method creates a new Name object by searching the "ESRI Name String Parsers" component category for objects implementing IParseNameString. Once the correct name-string parser is found it is used to create the Name object.

INameFactory.PackageNames Method

Packages the set of names into a VARIANT (typically for initiating a drag operation).

Public Function PackageNames ( _
    ByVal names As IEnumName _
) As Object
public object PackageNames (
    IEnumName names
);

Description

The PackageNames method packages a set of Name objects into a VARIANT. This is typically used to package data objects when starting a custom drag operation.

INameFactory.UnpackageNames Method

Unpackages the given VARIANT into a set of Name objects (typically for responding to a drop operation).

Public Function UnpackageNames ( _
    ByRef bytesArray As Object _
) As IEnumName
public IEnumName UnpackageNames (
    ref object bytesArray
);

Description

The UnpackageNames method unpackages the given VARIANT into a set of Name objects. This is typically used to unpackage data objects when sresponding to a custom drop operation.

Classes that implement INameFactory

Classes Description
NameFactory Name Object Factory.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.