CipherData.CipherValue Propriedade
Definição
Obtém ou define o elemento <CipherValue>.Gets or sets the <CipherValue> element.
public:
property cli::array <System::Byte> ^ CipherValue { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public byte[] CipherValue { get; set; }
member this.CipherValue : byte[] with get, set
Public Property CipherValue As Byte()
Valor da propriedade
- Byte[]
Uma matriz de bytes que representa o elemento <CipherValue>.A byte array that represents the <CipherValue> element.
Exceções
A propriedade CipherValue foi definida como null.The CipherValue property was set to null.
A propriedade CipherValue foi definida mais de uma vez.The CipherValue property was set more than once.
Exemplos
O exemplo de código a seguir mostra como criar uma nova instância da CipherData classe.The following code example shows how to create a new instance of the CipherData class.
// Create a new CipherData object using a byte array to represent encrypted data.
array<Byte>^sampledata = gcnew array<Byte>(8);
CipherData ^ cd = gcnew CipherData( sampledata );
// Create a new CipherData object using a byte array to represent encrypted data.
Byte[] sampledata = new byte[8];
CipherData cd = new CipherData(sampledata);
' Create a new CipherData object using a byte array to represent encrypted data.
Dim sampledata(7) As Byte
Dim cd As New CipherData(sampledata)
Comentários
O valor é dados criptografados.The value is encrypted data.
Observação
O <CipherData> elemento pode ter um CipherReference ou um CipherValue elemento filho, mas não ambos.The <CipherData> element can have either a CipherReference or a CipherValue child element, but not both. Um CryptographicException será gerado se ambos forem atribuídos a um CipherData objeto.A CryptographicException is thrown if both are assigned to a CipherData object.