IXamlServiceProvider.GetService(TypeName) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定類型的服務物件。
public:
Platform::Object ^ GetService(TypeName type);
IInspectable GetService(TypeName const& type);
public object GetService(System.Type type);
function getService(type)
Public Function GetService (type As Type) As Object
參數
傳回
指定類型的服務物件,如果沒有該類型的服務物件,則為 null。