public void Delete( Description description )
Public Sub Delete( _ ByVal description As Description _ )
Parameters
- description
- Indicates the object to be deleted.
public void Delete( Description description )
Public Sub Delete( _ ByVal description As Description _ )
Exception | Description |
---|---|
System.ArgumentNullException | description is null. |
public void DeleteTableSnippet(Geodatabase geodatabase, Table table) { // Create a TableDescription object TableDescription tableDescription = new TableDescription(table.GetDefinition()); // Create a SchemaBuilder object SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); // Add the deletion of the table to our list of DDL tasks schemaBuilder.Delete(tableDescription); // Execute the DDL bool success = schemaBuilder.Build(); }
public void DeleteFeatureClassSnippet(Geodatabase geodatabase, FeatureClass featureClass) { // Create a FeatureClassDescription object FeatureClassDescription featureClassDescription = new FeatureClassDescription(featureClass.GetDefinition()); // Create a SchemaBuilder object SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); // Add the deletion fo the feature class to our list of DDL tasks schemaBuilder.Delete(featureClassDescription); // Execute the DDL bool success = schemaBuilder.Build(); }
public void DeleteFeatureDatasetSnippet(Geodatabase geodatabase) { // Deleting a FeatureDataset named as 'Parcel_Information' FeatureDatasetDefinition featureDatasetDefinition = geodatabase.GetDefinition<FeatureDatasetDefinition>("Parcel_Information"); FeatureDatasetDescription featureDatasetDescription = new FeatureDatasetDescription(featureDatasetDefinition); SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); // Delete an existing feature dataset named as 'Parcel_Information' schemaBuilder.Delete(featureDatasetDescription); schemaBuilder.Build(); }
public void RemoveSpatialIndex(SchemaBuilder schemaBuilder, FeatureClassDefinition featureClassDefinition) { // Create a spatial description SpatialIndexDescription spatialIndexDescription = new SpatialIndexDescription(new FeatureClassDescription(featureClassDefinition)); // Enqueue the DDL operation to remove index schemaBuilder.Delete(spatialIndexDescription); // Execute the delete index operation bool isDeleteIndexSuccess = schemaBuilder.Build(); }
public void DeleteDomain(Geodatabase geodatabase, string domainNameToBeDeleted = "PipeMaterial") { SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); CodedValueDomain codedValueDomain = geodatabase.GetDomains().First(f => f.GetName().Equals(domainNameToBeDeleted)) as CodedValueDomain; CodedValueDomainDescription codedValueDomainDescription = new CodedValueDomainDescription(codedValueDomain); // Deleting a coded value domain schemaBuilder.Delete(codedValueDomainDescription); schemaBuilder.Build(); }
public void DeleteRelationshipClass(SchemaBuilder schemaBuilder, RelationshipClassDefinition relationshipClassDefinition) { schemaBuilder.Delete(new RelationshipClassDescription(relationshipClassDefinition)); schemaBuilder.Build(); }
Target Platforms: Windows 11, Windows 10