Ejemplo n.º 1
0
        /// <summary>
        /// Setzt einen Parameter.
        /// </summary>
        /// <param name="propertySetId">Die eindeutige Kennung der Parametergruppe.</param>
        /// <param name="propertyId">Die laufende Nummer des Parameters.</param>
        /// <param name="instanceData">Die Daten der Instanz.</param>
        /// <param name="instanceDataLength">Die Größe der Daten der Instanz.</param>
        /// <param name="value">Der neue Wert.</param>
        /// <param name="valueLength">Die Größe des neuen Wertes.</param>
        public void Set(ref Guid propertySetId, BDAProperties propertyId, ref CACommand instanceData, Int32 instanceDataLength, ref CACommand value, Int32 valueLength)
        {
            // Process
            Int32 hResult = m_Set(ComInterface, ref propertySetId, propertyId, ref instanceData, instanceDataLength, ref value, valueLength);

            if (hResult < 0)
            {
                throw new COMException("KsPropertySet.Set", hResult);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Prüft, ob ein bestimmter Parameter angeboten wird.
        /// </summary>
        /// <param name="propertySetId">Die betroffene Parametergruppe.</param>
        /// <param name="propertyId">Der gewünschte Parameter.</param>
        /// <returns>Die Art der Unterstützung des Parameters.</returns>
        public PropertySetSupportedTypes QuerySupported(ref Guid propertySetId, BDAProperties propertyId)
        {
            // Result
            PropertySetSupportedTypes mode;

            // Process
            Int32 hResult = m_QuerySupported(ComInterface, ref propertySetId, propertyId, out mode);

            if (hResult < 0)
            {
                throw new COMException("KsPropertySet.PropertySetSupportedTypes", hResult);
            }

            // Report
            return(mode);
        }