DFS-N: module voor de status van metagegevens
Microsoft.Windows.FileServer.DFSN.Library.EntityStateDataSourceModuleType (DataSourceModuleType)
Met deze module wordt de gedetecteerde status van een naamruimte, map (koppeling) of mapdoel gekoppeld aan een status.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<DataSourceModuleType ID="Microsoft.Windows.FileServer.DFSN.Library.EntityStateDataSourceModuleType" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element minOccurs="1" name="SyncTime" type="xsd:string"/>
<xsd:element minOccurs="1" name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element minOccurs="1" name="ElementState" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedScript.PropertyBagProvider">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<SyncTime>$Config/SyncTime$</SyncTime>
<ScriptName>DFSNGetState.vbs</ScriptName>
<Arguments>$Config/ElementState$</Arguments>
<ScriptBody><Script>
SetLocale("en-us")
On Error Resume Next
Dim oAPI, oBag, oArgs, ElementState, sState
Set oAPI = CreateObject("MOM.ScriptAPI")
If Err.Number <> 0 Then
Wscript.Quit -1
End if
Set oArgs = WScript.Arguments
if oArgs.Count < 1 Then
Wscript.Quit -1
End If
ElementState = oArgs(0)
Set oBag = oAPI.CreatePropertyBag()
If Err.Number <> 0 Then
Wscript.Quit -1
End if
Call oBag.AddValue("ElementState", ElementState)
Call oAPI.Return(oBag)
</Script></ScriptBody>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</DataSource>
</MemberModules>
<Composition>
<Node ID="DS"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
</DataSourceModuleType>