返回类型 SettingsType_Binary属性的值。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: 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
)
参数
- collectionPath
类型:System.String
[in] 集合的路径。
- propertyName
类型:System.String
[in] 属性名。
- 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。