Compartilhar via


ElementOperations.GetModelingToolboxItemDisplayName Method

If the IDataObject contains a ModelingToolboxItem, this returns its DisplayName, otherwise null.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaração
Protected Shared Function GetModelingToolboxItemDisplayName ( _
    serviceProvider As IServiceProvider, _
    data As IDataObject _
) As String
protected static string GetModelingToolboxItemDisplayName(
    IServiceProvider serviceProvider,
    IDataObject data
)
protected:
static String^ GetModelingToolboxItemDisplayName(
    IServiceProvider^ serviceProvider, 
    IDataObject^ data
)
static member GetModelingToolboxItemDisplayName : 
        serviceProvider:IServiceProvider * 
        data:IDataObject -> string 
protected static function GetModelingToolboxItemDisplayName(
    serviceProvider : IServiceProvider, 
    data : IDataObject
) : String

Parameters

Return Value

Type: System.String
A ModelingToolboxItem.DisplayName if it exists, otherwise null.

.NET Framework Security

See Also

Reference

ElementOperations Class

Microsoft.VisualStudio.Modeling Namespace