Xceed Encryption Library Documentation
Xceed Encryption control reference / Methods / ToString method
In This Topic
    ToString method
    In This Topic

    Description

    Converts a variant byte array to a string containing only ASCII chars.

    The data returned by most methods and properties is in the form of a variant byte array however in many cases, it is necessary to transfer or store the results as a string. The ToString method allows this data to be converted so it can be easily transferred or stored and then converted back to a variant byte array using the FromString method so it can be used by the appropriate method or property later on.

    Parameters 

    Parameter Description
    vaData The variant byte array to convert.

    Return value

    Returns a string representing the converted byte array.

    Associated properties

    None

    Declaration (DXceedEncryption) Copy Code
    HRESULT ToString( [in] VARIANT* vaData, [out,retval] BSTR* bstrResult );
    Declaration (IXceedEncryption) Copy Code

    HRESULT ToString( [in,size_is(dwDataSize)] BYTE* pcData,
                      [in] DWORD dwDataSize,  
                      [out] BSTR* pbstrResult );

    Related topics

    To convert the string back to a variant byte array, the FromString method must be used.