Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

2acea2af 92e3 a7be b2af 843c99b1d2df

haplokuon edited this page May 6, 2023 · 1 revision

TryGetValue Method

netDxf 3.0.0 Library

Gets the attribute definition associated with the specified tag.

Definition

Namespace: netDxf.Collections
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public bool TryGetValue(
	string tag,
	out AttributeDefinition value
)

VB

Public Function TryGetValue ( 
	tag As String,
	<OutAttribute> ByRef value As AttributeDefinition
) As Boolean

C++

public:
virtual bool TryGetValue(
	String^ tag, 
	[OutAttribute] AttributeDefinition^% value
) sealed

F#

abstract TryGetValue : 
        tag : string * 
        value : AttributeDefinition byref -> bool 
override TryGetValue : 
        tag : string * 
        value : AttributeDefinition byref -> bool 

Parameters

  String
The tag whose value to get.
  AttributeDefinition
When this method returns, the attribute definition associated with the specified tag, if the tag is found; otherwise, null. This parameter is passed uninitialized.

Return Value

Boolean
True if the current dictionary contains an attribute definition with the specified tag; otherwise, false.

Implements

IDictionary(TKey, TValue).TryGetValue(TKey, TValue)

See Also

Reference

AttributeDefinitionDictionary Class
netDxf.Collections Namespace

Clone this wiki locally