IVsTextManager.GetBufferSccStatus2, méthode

Retourne les informations de si une mémoire tampon est sous le contrôle de code source et, le cas échéant, si le fichier est signé.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function GetBufferSccStatus2 ( _
    pszFileName As String, _
    <OutAttribute> ByRef pbNonEditable As Integer, _
    <OutAttribute> ByRef piStatusFlags As Integer _
) As Integer
int GetBufferSccStatus2(
    string pszFileName,
    out int pbNonEditable,
    out int piStatusFlags
)
int GetBufferSccStatus2(
    [InAttribute] String^ pszFileName, 
    [OutAttribute] int% pbNonEditable, 
    [OutAttribute] int% piStatusFlags
)
abstract GetBufferSccStatus2 : 
        pszFileName:string * 
        pbNonEditable:int byref * 
        piStatusFlags:int byref -> int
function GetBufferSccStatus2(
    pszFileName : String, 
    pbNonEditable : int, 
    piStatusFlags : int
) : int

Paramètres

  • pszFileName
    Type : String

    [in] nom de fichier d'intérêt.

  • pbNonEditable
    Type : Int32%

    [out] si true, alors le fichier ne peut pas être modifié (par exemple, si le fichier est sous le contrôle de code source et est signé). Si false, alors le fichier peut être modifié.)

  • piStatusFlags
    Type : Int32%

    [] balises supplémentaires d'état de retours. Il s'agit de la valeur d'tagVSQueryEditResult retournée de l'QueryEditFiles. Passez en valeur d'nullune référence null (Nothing en Visual Basic) pour ce paramètre si vous ne souhaitez pas la valeur de retour.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextManager::GetBufferSccStatus2(
   [in] const WCHAR *pszFileName,
   [out] BOOL *pbNonEditable,
   [out] int *piStatusFlags
);

Sécurité .NET Framework

Voir aussi

Référence

IVsTextManager Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms