LEADTOOLS Medical (Leadtools.Medical.Workstation assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
TryGetValue Method
See Also 
Leadtools.Medical.Workstation Namespace > ModalityOptionsCollection Class : TryGetValue Method




modality
The Leadtools.Dicom.Common.DataTypes.ModalityType object which ModalityOptions will be returned.
options
A ModalityOptions object to be returned for the specified modality.
modality
The Leadtools.Dicom.Common.DataTypes.ModalityType object which ModalityOptions will be returned.
options
A ModalityOptions object to be returned for the specified modality.
Gets the ModalityOptions value for the specified Leadtools.Dicom.Common.DataTypes.ModalityType.

Syntax

Visual Basic (Declaration) 
Public Function TryGetValue( _
   ByVal modality As ModalityType, _
   ByRef options As ModalityOptions _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ModalityOptionsCollection
Dim modality As ModalityType
Dim options As ModalityOptions
Dim value As Boolean
 
value = instance.TryGetValue(modality, options)
C# 
public bool TryGetValue( 
   ModalityType modality,
   out ModalityOptions options
)
Managed Extensions for C++ 
public: bool TryGetValue( 
   ModalityType modality,
   [PARAMFLAG::Out] ModalityOptions* options
) 
C++/CLI 
public:
bool TryGetValue( 
   ModalityType modality,
   [Out] ModalityOptions^ options
) 

Parameters

modality
The Leadtools.Dicom.Common.DataTypes.ModalityType object which ModalityOptions will be returned.
options
A ModalityOptions object to be returned for the specified modality.

Return Value

True if a ModalityOptions object is found and returned in the options parameter False if no valid object returned.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also