Style.GetStyleAttributes(IUrlResolutionService) 方法

定義

擷取指定 CssStyleCollection 實作物件的 IUrlResolutionService 物件。Retrieves the CssStyleCollection object for the specified IUrlResolutionService-implemented object.

public:
 System::Web::UI::CssStyleCollection ^ GetStyleAttributes(System::Web::UI::IUrlResolutionService ^ urlResolver);
public System.Web.UI.CssStyleCollection GetStyleAttributes (System.Web.UI.IUrlResolutionService urlResolver);
member this.GetStyleAttributes : System.Web.UI.IUrlResolutionService -> System.Web.UI.CssStyleCollection
Public Function GetStyleAttributes (urlResolver As IUrlResolutionService) As CssStyleCollection

參數

urlResolver
IUrlResolutionService

IUrlResolutionService 實作的物件,包含目前位置 (URL) 的內容資訊。A IUrlResolutionService-implemented object that contains the context information for the current location (URL).

傳回

備註

使用方法來抓取所System.Web.UI.CssStyleCollection指定System.Web.UI.IUrlResolutionService實作為物件的物件。 GetStyleAttributesUse the GetStyleAttributes method to retrieve the System.Web.UI.CssStyleCollection object for a specified System.Web.UI.IUrlResolutionService-implemented object. 衍生自的Control所有類別System.Web.UI.IUrlResolutionService都會執行。All classes derived from Control implement System.Web.UI.IUrlResolutionService.

適用於

另請參閱