IVsTextManager.AttemptToCheckOutBufferFromScc2 (Método)
Intentos de desproteger un archivo de control de código fuente.
Espacio de nombres: Microsoft.VisualStudio.TextManager.Interop
Ensamblado: Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxis
'Declaración
Function AttemptToCheckOutBufferFromScc2 ( _
pszFileName As String, _
<OutAttribute> ByRef pfCheckoutSucceeded As Integer, _
<OutAttribute> ByRef piStatusFlags As Integer _
) As Integer
int AttemptToCheckOutBufferFromScc2(
string pszFileName,
out int pfCheckoutSucceeded,
out int piStatusFlags
)
int AttemptToCheckOutBufferFromScc2(
[InAttribute] String^ pszFileName,
[OutAttribute] int% pfCheckoutSucceeded,
[OutAttribute] int% piStatusFlags
)
abstract AttemptToCheckOutBufferFromScc2 :
pszFileName:string *
pfCheckoutSucceeded:int byref *
piStatusFlags:int byref -> int
function AttemptToCheckOutBufferFromScc2(
pszFileName : String,
pfCheckoutSucceeded : int,
piStatusFlags : int
) : int
Parámetros
pszFileName
Tipo: String[in] Nombre de archivo a desproteger.
pfCheckoutSucceeded
Tipo: Int32%[out] Devuelve true si la desprotección del búfer se realizó correctamente.
piStatusFlags
Tipo: Int32%[out]Marcas adicionales de estado. Éste es el valor devuelto de tagVSQueryEditResult de una llamada al QueryEditFiles. Si se pasa un valor de nullreferencia null (Nothing en Visual Basic) para este parámetro, un indicador de tagVSQueryEditResult no se devuelve.
Valor devuelto
Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.
Comentarios
Prototipo COM
de textmgr.idl:
HRESULT IVsTextManager::AttemptToCheckOutBufferFromScc2(
[in] const WCHAR *pszFileName,
[out] BOOL *pfCheckoutSucceeded,
[out] int *piStatusFlags
);
Se llama a este método cuando el usuario intenta abrir un archivo con control de código fuente. El control de código fuente puede preguntar al usuario responder a la información en los cuadros de diálogo cuando se llama a este método.
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)