Class TableQueryNameClass

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll
[Guid("81CAA5D8-90C5-11D3-9F7B-00C04F6BC886")]
[ClassInterface(ClassInterfaceType.None)]
public class TableQueryNameClass : TableQueryName, IName, IDatasetName, IQueryName2, IQueryName, IPersistStream, IPersist
Inheritance
TableQueryNameClass
Implements
Inherited Members

Constructors

TableQueryNameClass()

public TableQueryNameClass()

Explicit Interface Implementations

Category

The category of the dataset.

virtual string Category { get; set; }

Returns

string

CopyLocally

Indicates if the data must be copied locally.

virtual bool CopyLocally { get; set; }

Returns

bool

Remarks

By default, CopyLocally is set to False.

GetClassID(out Guid)

virtual void GetClassID(out Guid pClassID)

Parameters

pClassID Guid

GetSizeMax(out _ULARGE_INTEGER)

virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)

Parameters

pcbSize _ULARGE_INTEGER

IPersistStream_GetClassID(out Guid)

virtual void IPersistStream_GetClassID(out Guid pClassID)

Parameters

pClassID Guid

IQueryName2_QueryDef

virtual IQueryDef IQueryName2_QueryDef { get; set; }

Returns

IQueryDef

IsDirty()

virtual void IsDirty()

Load(IStream)

virtual void Load(IStream pstm)

Parameters

pstm IStream

Name

The name of the dataset.

virtual string Name { get; set; }

Returns

string

NameString

The name string of the object.

virtual string NameString { get; set; }

Returns

string

Remarks

The NameString property is reserved for future use. When implemented, it will return a string representation of the locational component of the name object that may be persisted by applications.

Open()

Opens the object referred to by this name.

virtual object Open()

Returns

object

Remarks

The Open method lets you instantiate the actual object given the name object.

Note: Opening a feature class that participates in a topology or geometric network will also open all other feature classes participating in the topology or geometric network in memory.

PrimaryKey

The primary key field names.

virtual string PrimaryKey { get; set; }

Returns

string

Remarks

The name of the field or fields to use for assigning Object ID's to the rows in the QueryDef. Provide a comma delimited string of field names for cases where more than one field is needed to provide a unique value for each row (i.e. composite keys)

Always provide fully qualified field names.

QueryDef

QueryDef of feature class name.

virtual IQueryDef QueryDef { get; set; }

Returns

IQueryDef

Remarks

The IQueryDef::Subfields, IQueryDef::Tables and IQueryDef::WhereClause properties of the QueryDef are used to generate a SQL statement. This is executed against the database to return the rows represented by the table or feature class opened from the name object. If the QueryDef properties are not set properly, you may get errors or incorrect results. The following describes how to define these properties properly:

IQueryDef::Subfields - This must be a comma delimited list of field names or a * to indicate all columns. Column aliases and functions are invalid.

IQueryDef::Tables - This needs to be a comma delimited list of tables. Join statements or table aliases are invalid.

IQueryDef::WhereClause - Most WhereClauses are valid, but additonal statements like Order by and Group by are not.

See the IQueryDef interface for more information on QueryDefs.

Save(IStream, int)

virtual void Save(IStream pstm, int fClearDirty)

Parameters

pstm IStream
fClearDirty int

SubsetNames

Subset names contained within this dataset name.

virtual IEnumDatasetName SubsetNames { get; }

Returns

IEnumDatasetName

Type

The type of the dataset.

virtual esriDatasetType Type { get; }

Returns

esriDatasetType

WorkspaceName

The WorkspaceName of the DatasetName.

virtual IWorkspaceName WorkspaceName { get; set; }

Returns

IWorkspaceName

Remarks

<P><FONT face=Verdana size=2>A workspace name specifies a workspace object and can be used to instantiate it. The workspace is specified using the connection properties for the workspace.  </FONT><FONT face=Verdana size=2>A workspace name is a key component of any dataset name for datasets in the workspace.</FONT></P> <P></P>