Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a 64-bit integer value or a specified default value.
Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function GetInt64OrDefault ( _
    collectionPath As String, _
    propertyName As String, _
    defaultValue As Long, _
    <OutAttribute> ByRef value As Long _
) As Integer
int GetInt64OrDefault(
    string collectionPath,
    string propertyName,
    long defaultValue,
    out long value
)
int GetInt64OrDefault(
    [InAttribute] String^ collectionPath, 
    [InAttribute] String^ propertyName, 
    [InAttribute] long long defaultValue, 
    [OutAttribute] long long% value
)
abstract GetInt64OrDefault : 
        collectionPath:string * 
        propertyName:string * 
        defaultValue:int64 * 
        value:int64 byref -> int
function GetInt64OrDefault(
    collectionPath : String, 
    propertyName : String, 
    defaultValue : long, 
    value : long
) : int
Parameters
- collectionPath 
 Type: String- [in] The path of the collection. 
- propertyName 
 Type: String- [in] The property name. 
- defaultValue 
 Type: Int64- [in] The default value to return if the property is not set. 
- value 
 Type: Int64%- [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 a 64-bit integer.
Remarks
If the property was stored as a signed value, then regular C++ type casting semantics are applied on the output value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.