Freigeben über


IVsWritableSettingsStore.GetUnsignedIntOrDefault Method (String, String, UInt32, UInt32%)

Returns an unsigned integer property or a given default value.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function GetUnsignedIntOrDefault ( _
    collectionPath As String, _
    propertyName As String, _
    defaultValue As UInteger, _
    <OutAttribute> ByRef value As UInteger _
) As Integer
int GetUnsignedIntOrDefault(
    string collectionPath,
    string propertyName,
    uint defaultValue,
    out uint value
)
int GetUnsignedIntOrDefault(
    [InAttribute] String^ collectionPath, 
    [InAttribute] String^ propertyName, 
    [InAttribute] unsigned int defaultValue, 
    [OutAttribute] unsigned int% value
)
abstract GetUnsignedIntOrDefault : 
        collectionPath:string * 
        propertyName:string * 
        defaultValue:uint32 * 
        value:uint32 byref -> int
function GetUnsignedIntOrDefault(
    collectionPath : String, 
    propertyName : String, 
    defaultValue : uint, 
    value : uint
) : int

Parameters

  • collectionPath
    Type: String

    [in] The path of the collection.

  • propertyName
    Type: String

    [in] The property name.

  • defaultValue
    Type: UInt32

    [in] The value to return if the property is not set.

  • value
    Type: UInt32%

    [out] The value.

Return Value

Type: Int32
Returns S_OK if the property was returned, S_FALSE if the property does not exist or E_INVALIDARG if the property type is not an unsigned integer.

.NET Framework Security

See Also

Reference

IVsWritableSettingsStore Interface

GetUnsignedIntOrDefault Overload

Microsoft.VisualStudio.Shell.Interop Namespace