Version

Add(String) Method

Adds a ResourceSettings for the specified name to the collection.
Syntax
'Declaration
 
Public Overloads Overrides Function Add( _
   ByVal name As String _
) As ResourceSettings
public override ResourceSettings Add( 
   string name
)

Parameters

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