/// <summary> /// Writes the given property key and value. /// </summary> /// <param name="key">The property key.</param> /// <param name="value">The value associated with the key.</param> public void WriteProperty(PropertyKey key, object value) { WriteProperty(key, value, true); }
/// <summary> /// Returns a strongly typed property available in the default property collection using /// the given property key. /// </summary> /// <typeparam name="T">The type of property to retrieve.</typeparam> /// <param name="key">The property key.</param> /// <returns>A strongly-typed ShellProperty for the given property key.</returns> public ShellProperty <T> GetProperty <T>(PropertyKey key) { return(CreateTypedProperty(key) as ShellProperty <T>); }
internal IShellProperty CreateTypedProperty(PropertyKey propKey) { return(ShellPropertyFactory.CreateShellProperty(propKey, ParentShellObject)); }
/// <summary> /// Returns a property available in the default property collection using /// the given property key. /// </summary> /// <param name="key">The property key.</param> /// <returns>An IShellProperty.</returns> public IShellProperty GetProperty(PropertyKey key) { return(CreateTypedProperty(key)); }
internal IShellProperty CreateTypedProperty <T>(PropertyKey propKey) { ShellPropertyDescription desc = ShellPropertyDescriptionsCache.Cache.GetPropertyDescription(propKey); return(new ShellProperty <T>(propKey, desc, ParentShellObject)); }