PresentationHelpers.Diagrams Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
All opened diagrams, of a particular type if specified, that are displaying elements defined in the given IModelStore instance.
Namespace: Microsoft.VisualStudio.Uml.Presentation
Assembly: Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Diagrams ( _
modelStore As IModelStore, _
typeName As String _
) As IEnumerable(Of IDiagram)
'Usage
Dim modelStore As IModelStore
Dim typeName As String
Dim returnValue As IEnumerable(Of IDiagram)
returnValue = modelStore.Diagrams(typeName)
public static IEnumerable<IDiagram> Diagrams(
this IModelStore modelStore,
string typeName
)
[ExtensionAttribute]
public:
static IEnumerable<IDiagram^>^ Diagrams(
IModelStore^ modelStore,
String^ typeName
)
static member Diagrams :
modelStore:IModelStore *
typeName:string -> IEnumerable<IDiagram>
public static function Diagrams(
modelStore : IModelStore,
typeName : String
) : IEnumerable<IDiagram>
Parameters
- modelStore
Type: Microsoft.VisualStudio.Uml.Extensions.IModelStore
IModelStore instance to get opened diagrams for.
- typeName
Type: System.String
If not null or empty, only diagrams with this TypeName will be returned; otherwise all opened diagrams on the given model store will be returned.
Return Value
Type: System.Collections.Generic.IEnumerable<IDiagram>
All opened diagrams, of a particular type if specified, that are displaying elements defined in the given IModelStore instance, empty enumeration if none found.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IModelStore. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.