MockPackageManager.GetText(String, Int32, ApplicationInfo) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用 GetTextFormatted 并将其结果转换为字符串。 默认的模拟实现引发 UnsupportedOperationException。
public string? GetText(string? packageName, int resid, Android.Content.PM.ApplicationInfo? appInfo);
override this.GetText : string * int * Android.Content.PM.ApplicationInfo -> string
参数
- packageName
- String
包名称。
GetTextFormatted传递给 ;其默认模拟实现不使用此参数。
- resid
- Int32
资源 ID。
GetTextFormatted传递给 ;其默认模拟实现不使用此参数。
- appInfo
- ApplicationInfo
资源的应用程序信息。
GetTextFormatted传递给 ;其默认模拟实现不使用此参数。
返回
默认模拟不会返回任何值。 此包装器调用 GetTextFormatted其默认实现引发 UnsupportedOperationException。
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。