IAddNewItemParticipant.AllowDisplayInAddItemDialog Method
Returns the appropriate enumeration to hide or display items in the Add Item dialog.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Function AllowDisplayInAddItemDialog ( _
context As AddItemDialogContext, _
stringType As TemplateStringType, _
templateString As String _
) As TemplateDisplayResult
'Usage
Dim instance As IAddNewItemParticipant
Dim context As AddItemDialogContext
Dim stringType As TemplateStringType
Dim templateString As String
Dim returnValue As TemplateDisplayResult
returnValue = instance.AllowDisplayInAddItemDialog(context, _
stringType, templateString)
TemplateDisplayResult AllowDisplayInAddItemDialog(
AddItemDialogContext context,
TemplateStringType stringType,
string templateString
)
TemplateDisplayResult AllowDisplayInAddItemDialog(
AddItemDialogContext^ context,
TemplateStringType stringType,
String^ templateString
)
function AllowDisplayInAddItemDialog(
context : AddItemDialogContext,
stringType : TemplateStringType,
templateString : String
) : TemplateDisplayResult
abstract AllowDisplayInAddItemDialog :
context:AddItemDialogContext *
stringType:TemplateStringType *
templateString:string -> TemplateDisplayResult
Parameters
- context
Type: Microsoft.VisualStudio.Data.Schema.Project.Project.AddItemDialogContext
The current context for the add item dialog
- stringType
Type: Microsoft.VisualStudio.Data.Schema.Project.Project.TemplateStringType
Specifies how to interpret the template string
- templateString
Type: System.String
The template string
Return Value
Type: Microsoft.VisualStudio.Data.Schema.Project.Project.TemplateDisplayResult
Returns a TemplateDisplayResult.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IAddNewItemParticipant Interface
IAddNewItemParticipant Members
Microsoft.VisualStudio.Data.Schema.Project.Project Namespace