IVsSettingsStore.GetBinary 方法

返回数据类型是 SettingsType_Binary请求的属性的值。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:   Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
  Microsoft.VisualStudio.Shell.Interop.10.0(在 Microsoft.VisualStudio.Shell.Interop.10.0.dll 中)

语法

声明
Function GetBinary ( _
    collectionPath As String, _
    propertyName As String, _
    byteLength As UInteger, _
    <OutAttribute> pBytes As Byte(), _
    <OutAttribute> actualByteLength As UInteger() _
) As Integer
int GetBinary(
    string collectionPath,
    string propertyName,
    uint byteLength,
    byte[] pBytes,
    uint[] actualByteLength
)

参数

  • byteLength
    类型:System.UInt32
    [in] pBytes 的大小(以字节为单位)。可以是 0,则调用方希望知道值的范围,而不复制它。
  • pBytes
    类型:array<System.Byte[]
    [out] 填充的缓冲区用特性。可以为空,如果调用方希望知道缓冲区的大小,而不复制文件。
  • actualByteLength
    类型:array<System.UInt32[]
    [out] 返回的实际字节数。

返回值

类型:System.Int32
返回 S_OK ,如果属性返回, S_FALSE ,如果属性不存在或 E_INVALIDARG ,如果属性类型不是二进制。

备注

若要查找属性的大小,请将 0 在 byteLength 参数。属性的实际字节长度在 actualByteLength将返回,但是,数据不会被复制到 pBytes。

.NET Framework 安全性

请参见

参考

IVsSettingsStore 接口

Microsoft.VisualStudio.Shell.Interop 命名空间