DatabaseProjectAddItemDialogContext Class

When the Add New Item dialog box is displayed, this context object is available from the IDatabaseProjectNode. Any IDatabaseProjectFeature instances that implement IDatabaseProjectAddNewItemParticipant use this object to add creation strings as an input to the template wizard.

This API is not CLS-compliant. 

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Schema.Package.Project.DatabaseProjectAddItemDialogContext
    Microsoft.VisualStudio.Data.Schema.Package.Project.DatabaseProjectSolutionExplorerAddItemDialogContext
    Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.SchemaView.DatabaseSchemaViewAddItemDialogContext

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public MustInherit Class DatabaseProjectAddItemDialogContext
[CLSCompliantAttribute(false)]
public abstract class DatabaseProjectAddItemDialogContext
[CLSCompliantAttribute(false)]
public ref class DatabaseProjectAddItemDialogContext abstract
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type DatabaseProjectAddItemDialogContext =  class end
public abstract class DatabaseProjectAddItemDialogContext

The DatabaseProjectAddItemDialogContext type exposes the following members.

Constructors

  Name Description
Public method DatabaseProjectAddItemDialogContext Initializes a new instance of the DatabaseProjectAddItemDialogContext class.

Top

Properties

  Name Description
Public property Cancel Gets or sets a value that indicates whether you want to cancel the Add New Item dialog box.
Public property CreatedFileName Gets or sets the name of the new file that was created by the wizard.
Public property CreationStrings Gets a list of all added creation strings.
Public property DatabaseProjectNode Gets or sets the database project node that started the Add New Item dialog box.
Public property Target Gets or sets the target for the new item.
Public property WizardData Gets or sets the WizardData element that is part of the vstemplate schema.

Top

Methods

  Name Description
Public method AddCreationString Adds a key/value pair that will be available to the wizard that was specified in the WizardExtension attribute of the vstemplate.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Data.Schema.Package.Project Namespace