Freigeben über


IVsSettingsStore.GetPropertyName Method

Returns the name of a property.

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 GetPropertyName ( _
    collectionPath As String, _
    index As UInteger, _
    <OutAttribute> ByRef propertyName As String _
) As Integer
int GetPropertyName(
    string collectionPath,
    uint index,
    out string propertyName
)
int GetPropertyName(
    [InAttribute] String^ collectionPath, 
    [InAttribute] unsigned int index, 
    [OutAttribute] String^% propertyName
)
abstract GetPropertyName : 
        collectionPath:string * 
        index:uint32 * 
        propertyName:string byref -> int
function GetPropertyName(
    collectionPath : String, 
    index : uint, 
    propertyName : String
) : int

Parameters

  • collectionPath
    Type: String

    [in] The path of the collection.

  • index
    Type: UInt32

    [in] The index of the property in the collection

  • propertyName
    Type: String%

    [out] The name of the property. This should be passed as an uninitialized BSTR. The method allocates enough space to hold the name of the requested property. The caller should call SysFreeString to release the BSTR when it is no longer needed.

Return Value

Type: Int32
Returns S_OK if the property name was returned. If the collection does not exist or the index is bigger than or equal to the number of sub-collections, the method returns E_INVALIDARG.

Remarks

The index is zero-based, so it should be smaller than the number of available properties. If the index denotes the default property, then the output name is an empty string.

.NET Framework Security

See Also

Reference

IVsSettingsStore Interface

Microsoft.VisualStudio.Shell.Interop Namespace