ResourceGet method
Directly calls the Get method of a DSC resource.
Syntax
uint32 ResourceGet(
[in] string ResourceType,
[in] string ModuleName,
[in] uint8 resourceProperty[],
[out] OMI_BaseResource configurations
);
Parameters
ResourceType [in] The name of the resource to call.
ModuleName [in] The name of the module that contains the resource to call.
resourceProperty [in] Specifies the resource property name and its value in a hash table as key and value, respectively. Use the Get-DscResource cmdlet to discover resource properties and their types.
configurations [out] On return, contains an embedded instance of the configurations.
Return value
Returns zero on success; otherwise returns an error code.
Remarks
This is a static method.
Requirements
MOF: DscCore.mof
Namespace: Root\Microsoft\Windows\DesiredStateConfiguration
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for