OpenDocumentCommand.OpenWithDefaultApplication Method
Opens the specified document or url using default application associated with that document type.
If no program is associated with the specified document type, this method will try to open the document by using the fallbackApplication.
Namespace: Microsoft.TeamFoundation.MVVM
Assembly: Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)
Syntax
'Declaration
Public Shared Sub OpenWithDefaultApplication ( _
path As String, _
fallbackApplication As String _
)
public static void OpenWithDefaultApplication(
string path,
string fallbackApplication
)
public:
static void OpenWithDefaultApplication(
String^ path,
String^ fallbackApplication
)
static member OpenWithDefaultApplication :
path:string *
fallbackApplication:string -> unit
public static function OpenWithDefaultApplication(
path : String,
fallbackApplication : String
)
Parameters
- path
Type: System.String
- fallbackApplication
Type: System.String
.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.