packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/PropertySystem/ShellPropertyWriter.cs
/// <summary>
/// Writes the specified property given a strongly-typed ShellProperty and a value. To allow truncation of the given value, set allowTruncatedValue
/// to true.
/// </summary>
/// <typeparam name="T">The type of the property name.</typeparam>
/// <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 a strongly-typed ShellProperty and a value. To allow truncation of the given value, set allowTruncatedValue
to true.
Writes the specified property given a strongly - typed ShellProperty and a value . To allow truncation of the given value set allowTruncatedValue to true .
public void WriteProperty<T>(ShellProperty<T> shellProperty, T value, bool allowTruncatedValue)
        {
            if (shellProperty == null) { throw new ArgumentNullException("shellProperty"); }
            WriteProperty(shellProperty.PropertyKey, value, allowTruncatedValue);
        }
public void WriteProperty < T > ( ShellProperty < T > shellProperty , T value , bool allowTruncatedValue ) { if ( shellProperty == null ) { throw new ArgumentNullException ( " " ) ; } WriteProperty ( shellProperty . PropertyKey , value , allowTruncatedValue ) ; }
Writes the specified property given a strongly-typed ShellProperty and a value.
Writes the specified property given a strongly - typed ShellProperty and a value .
shellProperty
ShellProperty<T>
The property name.
The property name .
value
T
The property value.
The property value .
allowTruncatedValue
bool
True to allow truncation (default); otherwise False.
True to allow truncation ( default ) ; otherwise False .
typeparam
The type of the property name.
The type of the property name .