Version

CreateResource Method

Creates a resource using the specified properties of the state.
Syntax
'Declaration
 
Public Function CreateResource( _
   ByVal resourceName As String, _
   ByVal properties As AppearancePropFlags, _
   ByVal useResource As Boolean _
) As ResourceSettings
public ResourceSettings CreateResource( 
   string resourceName,
   AppearancePropFlags properties,
   bool useResource
)

Parameters

resourceName
Name of the new resource to be created
properties
Flags indicating which properties should be used to create the resource.
useResource
True to clear those properties from the state object and have it reference the new source; false to just create a new resource without affecting the state instance.

Return Value

The new ResourceSettings object that is created.
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