ITaskSettings::NetworkSettings property

Gets or sets the network settings object that contains a network profile identifier and name. If the RunOnlyIfNetworkAvailable property of ITaskSettings is true and a network propfile is specified in the NetworkSettings property, then the task will run only if the specified network profile is available.

This property is read/write.

Syntax


HRESULT put_NetworkSettings(
  [in]   INetworkSettings *pNetworkSettings
);

HRESULT get_NetworkSettings(
  [out]  INetworkSettings **ppNetworkSettings
);

Property value

A pointer to an INetworkSettings object that contains a network profile identifier and name.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITaskSettings
INetworkSettings

 

 

Community Additions

ADD
Show:
© 2014 Microsoft