Version

Insert(Int32,String) Method

Adds a ResourceSettings for the specified name to the collection at the specified index.
Syntax
'Declaration
 
Public Overloads Function Insert( _
   ByVal index As Integer, _
   ByVal name As String _
) As ResourceSettings
public ResourceSettings Insert( 
   int index,
   string name
)

Parameters

index
Index at which the item should be inserted
name
The name of the resource for the ResourceSettings from the ApplicationStyleLibrary.Resources collection of the associated ApplicationStyleLibrary.

Return Value

The ResourceSettings that was added to the collection.
Remarks

A ResourceSettings instance with this name must already exist in the ApplicationStyleLibrary.Resources collection to prevent an exception from being raised. In addition, if a resource with the specified name already exists in the collection, an exception will be thrown.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also