ElementOperations.GetModelingToolboxItemDisplayName Method
If the IDataObject contains a ModelingToolboxItem, this returns its DisplayName, otherwise null.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
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
serviceProvider
Type: System.IServiceProviderThe service provider to use for retrieving the IToolboxService.
data
Type: System.Windows.Forms.IDataObjectThe IDataObject to retrieve the ModelingToolboxItem data from.
Return Value
Type: System.String
A ModelingToolboxItem.DisplayName if it exists, otherwise null.
.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.