IVsWritableSettingsStore.SetBinary(String, String, UInt32, Byte[]) Método

Definição

Define o valor de uma propriedade binária com a matriz de bytes especificada. Se o tipo de dados anterior da propriedade não for SettingsType_Binary, esse método o substituirá. Se a propriedade não existir, ela criará uma

public:
 int SetBinary(System::String ^ collectionPath, System::String ^ propertyName, System::UInt32 byteLength, cli::array <System::Byte> ^ pBytes);
public:
 int SetBinary(Platform::String ^ collectionPath, Platform::String ^ propertyName, unsigned int byteLength, Platform::Array <byte> ^ pBytes);
int SetBinary(std::wstring const & collectionPath, std::wstring const & propertyName, unsigned int byteLength, std::Array <byte> const & pBytes);
public int SetBinary (string collectionPath, string propertyName, uint byteLength, byte[] pBytes);
abstract member SetBinary : string * string * uint32 * byte[] -> int
Public Function SetBinary (collectionPath As String, propertyName As String, byteLength As UInteger, pBytes As Byte()) As Integer

Parâmetros

collectionPath
String

no O caminho para a coleção.

propertyName
String

no O nome da propriedade.

byteLength
UInt32

no O número de bytes a serem gravados.

pBytes
Byte[]

no A matriz de bytes a ser gravada.

Retornos

Int32

Retorna S_OK se a propriedade foi definida. Se a coleção não existir, o método retornará E_INVALIDARG .

Comentários

Se byteLength for 0, pBytes pode ser NULL, mas, caso contrário, deve apontar para uma matriz de bytes de tamanho especificado.

Aplica-se a