HelperMethods.AccessKeySpecifierFromObject(Object) 方法

定义

注意

This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.AccessKeySpecifierFromObject instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.

将输入对象转换为访问键说明符。 可以转换 char 或单字符字符串类型的对象。 如果传入了不同类型的对象,则返回 &。

public:
 static char AccessKeySpecifierFromObject(System::Object ^ accessKeySpecifier);
public:
 static char16 AccessKeySpecifierFromObject(Platform::Object ^ accessKeySpecifier);
 static char AccessKeySpecifierFromObject(winrt::Windows::Foundation::IInspectable const & accessKeySpecifier);
[System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.AccessKeySpecifierFromObject instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.")]
public static char AccessKeySpecifierFromObject (object accessKeySpecifier);
[<System.Obsolete("This method is obsolete. Please use Microsoft.VisualStudio.Utilities.Accelerator.AccessKeySpecifierFromObject instead. You may need to add a reference to Microsoft.VisualStudio.Utilities.")>]
static member AccessKeySpecifierFromObject : obj -> char
Public Shared Function AccessKeySpecifierFromObject (accessKeySpecifier As Object) As Char

参数

accessKeySpecifier
Object

要转换的对象

返回

访问密钥说明符从 accessKeySpecifier

属性

适用于