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

facdf94f 933b 731a 0c72 685ec9b52ce5

haplokuon edited this page May 6, 2023 · 1 revision

TryGetValue Method

netDxf 3.0.0 Library

Gets the table object associated with the specified name.

Definition

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

C#

public bool TryGetValue(
	string name,
	out T item
)

VB

Public Function TryGetValue ( 
	name As String,
	<OutAttribute> ByRef item As T
) As Boolean

C++

public:
bool TryGetValue(
	String^ name, 
	[OutAttribute] T% item
)

F#

member TryGetValue : 
        name : string * 
        item : 'T byref -> bool 

Parameters

  String
The name of the table object to get.
  T
When this method returns, contains the table object associated with the specified name, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

Boolean
True if the table contains an element with the specified name; otherwise, false.

See Also

Reference

TableObjects(T) Class
netDxf.Collections Namespace

Clone this wiki locally