PresentationHelpers.Diagrams Method
All the open diagrams in the model, of a particular type if specified.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Diagrams ( _
modelStore As IModelStore, _
typeName As String _
) As IEnumerable(Of IDiagram)
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.ArchitectureTools.Extensibility.Uml.IModelStoreThe UML model store
typeName
Type: System.StringOmit to return all diagrams. If not empty, only diagrams with the specified TypeName are returned.
Return Value
Type: System.Collections.Generic.IEnumerable<IDiagram>
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).
Remarks
For more information, see:
.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
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace