This documentation is archived and is not being maintained.

PageTheme.CreateSkinKey Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Creates a lookup key object for a particular control type and skin ID.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public static Object CreateSkinKey (
	Type controlType,
	string skinID
public static Object CreateSkinKey (
	Type controlType, 
	String skinID
public static function CreateSkinKey (
	controlType : Type, 
	skinID : String
) : Object
Not applicable.



The Type of control to which a control skin applies, which is passed typically from the ControlType.


The name of the control skin for which to create a key.

Return Value

An object that can be used as a lookup key in a dictionary-style collection, which contains the control type and skin ID information.

Exception typeCondition


controlType is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0