共用方式為


CoreStrings.SingletonRequired(Object, Object) 方法

定義

嘗試註冊 '{scope}' 服務 '{service}' 的實例。 實例只能註冊 'Singleton' 服務。

public static string SingletonRequired (object scope, object service);
public static string SingletonRequired (object? scope, object? service);
static member SingletonRequired : obj * obj -> string
Public Shared Function SingletonRequired (scope As Object, service As Object) As String

參數

scope
Object
service
Object

傳回

適用於