Nota
O acesso a esta página requer autorização. Pode tentar iniciar sessão ou alterar os diretórios.
O acesso a esta página requer autorização. Pode tentar alterar os diretórios.
Obtém o identificador de programa do gerador de padrão para um arquivo especificado.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (em Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Sintaxe
int GetDefaultGenerator(
string wszFilename,
out string pbstrGenProgID
)
int GetDefaultGenerator(
String^ wszFilename,
[OutAttribute] String^% pbstrGenProgID
)
abstract GetDefaultGenerator :
wszFilename:string *
pbstrGenProgID:string byref -> int
Function GetDefaultGenerator (
wszFilename As String,
<OutAttribute> ByRef pbstrGenProgID As String
) As Integer
Parâmetros
- wszFilename
[in] O arquivo para o qual deseja obter o prog Gerador ID.
- pbstrGenProgID
[out] O ID padrão gerador prog.
Valor de retorno
Type: System.Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De vsshell80.idl:
HRESULT GetDefaultGenerator(
[in] LPCOLESTR wszFilename,
[out, retval] BSTR* pbstrGenProgID
);
Consulte também
Interface IVsSingleFileGeneratorFactory
Namespace Microsoft.VisualStudio.Shell.Interop
Retornar ao topo