BlockKeyedCollection<T>.SetRootBlock Method

Set the root block.
Public Sub SetRootBlock( _ 
ByVal key As String
)
This language is not supported or no code example is available.
public void SetRootBlock( 
string key 
)
This language is not supported or no code example is available.

Parameters

key
string

The block name.

Exception type Condition

EyeshotException

Thrown if the collection is linked to an environment.

Remarks
 
The root block must be set to assign the collection to an Environment. If the collection is linked to an environment, it's not possible to set a different root block.

.NET Framework

Supported in: 4.8

In this article

Definition