SetPreference MethodSave PDFSave selected topicSave selected topic and subtopicsSave all topicsShareShare to emailCopy topic URLLast UpdatedAug 21, 20261 minute readHMI and SCADAOperations Management Interface 2026 Sets the preference value.Syntax Visual BasicC#C++/CLI 'Declaration Sub SetPreference( _ ByVal name As String, _ ByVal value As Object _ ) void SetPreference( string name, object value ) void SetPreference( String^ name, Object^ value ) Parametersname name of the preferencevalue value of the preference RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIPreference InterfaceIPreference Members In This Topic
Sets the preference value.Syntax Visual BasicC#C++/CLI 'Declaration Sub SetPreference( _ ByVal name As String, _ ByVal value As Object _ ) void SetPreference( string name, object value ) void SetPreference( String^ name, Object^ value ) Parametersname name of the preferencevalue value of the preference RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIPreference InterfaceIPreference Members
Sets the preference value.Syntax Visual BasicC#C++/CLI 'Declaration Sub SetPreference( _ ByVal name As String, _ ByVal value As Object _ ) void SetPreference( string name, object value ) void SetPreference( String^ name, Object^ value ) Parametersname name of the preferencevalue value of the preference RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIPreference InterfaceIPreference Members
Sets the preference value.Syntax Visual BasicC#C++/CLI 'Declaration Sub SetPreference( _ ByVal name As String, _ ByVal value As Object _ ) void SetPreference( string name, object value ) void SetPreference( String^ name, Object^ value ) Parametersname name of the preferencevalue value of the preference RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceIPreference InterfaceIPreference Members