Freigeben über


JobStep.OutputFileName-Eigenschaft

Gets or sets the name and path of the operating system file that records job step result message text.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property OutputFileName As String 
    Get 
    Set
'Usage
Dim instance As JobStep 
Dim value As String 

value = instance.OutputFileName

instance.OutputFileName = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string OutputFileName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ OutputFileName {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member OutputFileName : string with get, set
function get OutputFileName () : String 
function set OutputFileName (value : String)

Eigenschaftswert

Typ: System.String
An OSRunPriority value that specifies the priority given to job steps executing operating system tasks.

Hinweise

The sysadmin permission level is required to access this property. N.sysadmins can also use this property.

Set OutputFileName to start recording result message text to the file indicated by the property. Set OutputFileName to an empty string to stop recording.

Beispiele

Planen von automatischen, administrativen Tasks im SQL Server-Agent

Siehe auch

Verweis

JobStep Klasse

Microsoft.SqlServer.Management.Smo.Agent-Namespace

Andere Ressourcen

Automatisierte Administrationstasks (SQL Server-Agent)

sp_help_jobstep (Transact-SQL)