Partager via


System.ProfileString Property

Returns or sets a value for an entry in the Windows registry under the following subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\version\Word.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property ProfileString ( _
    Section As String, _
    Key As String _
) As String
    Get
    Set
'Usage
Dim instance As System
Dim Section As String
Dim Key As String
Dim value As String

value = instance.ProfileString(Section, _
    Key)

instance.ProfileString(Section, Key) = value
string this[
    string Section,
    string Key
] { get; set; }

Parameters

  • Section
    Type: System.String
    Required String. A subkey below the "HKEY_CURRENT_USER\Software\Microsoft\Office\version \Word" subkey in the Windows registry.
  • Key
    Type: System.String
    Required String. The name of the entry in the subkey specified by Section (for example, "BackgroundPrint" in the Options subkey).

Property Value

Type: System.String

See Also

Reference

System Interface

System Members

Microsoft.Office.Interop.Word Namespace