packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyWriter.cs
/// <summary>
/// Writes the specified property given an IShellProperty and a value. To allow truncation of the given value, set allowTruncatedValue
/// to true.
/// </summary>
/// <param name="shellProperty">The property name.</param>
/// <param name="value">The property value.</param>
/// <param name="allowTruncatedValue">True to allow truncation (default); otherwise False.</param>
Writes the specified property given an IShellProperty and a value. To allow truncation of the given value, set allowTruncatedValue
to true.
Writes the specified property given an IShellProperty and a value . To allow truncation of the given value set allowTruncatedValue to true .
public void WriteProperty(IShellProperty shellProperty, object value, bool allowTruncatedValue)
        {
            if (shellProperty == null) { throw new ArgumentNullException("shellProperty"); }
            WriteProperty(shellProperty.PropertyKey, value, allowTruncatedValue);
        }
public void WriteProperty ( IShellProperty shellProperty , object value , bool allowTruncatedValue ) { if ( shellProperty == null ) { throw new ArgumentNullException ( " " ) ; } WriteProperty ( shellProperty . PropertyKey , value , allowTruncatedValue ) ; }
Writes the specified property given an IShellProperty and a value.
Writes the specified property given an IShellProperty and a value .
shellProperty
IShellProperty
The property name.
The property name .
value
object
The property value.
The property value .
allowTruncatedValue
bool
True to allow truncation (default); otherwise False.
True to allow truncation ( default ) ; otherwise False .