Freigeben über


ICscHostObject.SetMainEntryPoint(String, String) Method

Definition

Specifies the location of the Main method.

public:
 bool SetMainEntryPoint(System::String ^ targetType, System::String ^ mainEntryPoint);
public bool SetMainEntryPoint (string targetType, string mainEntryPoint);
abstract member SetMainEntryPoint : string * string -> bool
Public Function SetMainEntryPoint (targetType As String, mainEntryPoint As String) As Boolean

Parameters

targetType
String

The file format of the output file. This value can be library, exe, module, or winexe.

mainEntryPoint
String

The location of the Main method.

Returns

true if the method was successful; otherwise, false.

Applies to