/// <summary> /// Sets the raw update property for the given property name. /// </summary> /// <param name="propName">The name of the property to be set.</param> /// <param name="propValue">The binary representation of the property value to be set.</param> /// <returns>Returns true if the property was set, false otherwise.</returns> public bool SetUpdateProperty(string propName, byte[] propValue) { if (m_updateHandle == -1) { throw new InvalidOperationException(); } return(MFNativeUpdate.SetUpdateProperty(m_updateHandle, propName, propValue)); }
/// <summary> /// Sets the update property for the given property name. /// </summary> /// <param name="propName">The name of the property to be set.</param> /// <param name="propValue">The value of property to be set.</param> /// <returns>Returns true if the property was set, false otherwise.</returns> public bool SetUpdateProperty(string propName, object propValue) { byte[] data = MFNativeUpdate.SerializeParameter(propValue); return(MFNativeUpdate.SetUpdateProperty(m_updateHandle, propName, data)); }