CoreStrings.SingletonRequired(Object, Object) 方法

定义

尝试为“{scope}”服务“{service}”注册实例。 只能为“单一实例”服务注册实例。

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

返回

适用于