Set Cache Size

Microsoft.Windows.BranchCache.CompositeWriteActionForTask.SetCacheSize (WriteActionModuleType)

Element properties:

TypeWriteActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
PA WriteAction System.CommandExecuter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
CacheSizedecimal$Config/CacheSize$Size of Cache
IsPercentbool$Config/IsPercent$Is size specified as percentage of disk size?
TimeoutSecondsint$Config/TimeoutSeconds$Timeout Seconds

Source Code:

<WriteActionModuleType ID="Microsoft.Windows.BranchCache.CompositeWriteActionForTask.SetCacheSize" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="CacheSize" type="xsd:unsignedLong"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IsPercent" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="CommandLine" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="TimeoutSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="CacheSize" Selector="$Config/CacheSize$" ParameterType="decimal"/>
<OverrideableParameter ID="IsPercent" Selector="$Config/IsPercent$" ParameterType="bool"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<WriteAction ID="PA" TypeID="System!System.CommandExecuter">
<ApplicationName>%WINDIR%\System32\netsh.exe</ApplicationName>
<WorkingDirectory>%WINDIR%\System32</WorkingDirectory>
<CommandLine>$Config/CommandLine$ size=$Config/CacheSize$ percent=$Config/IsPercent$</CommandLine>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="PA"/>
</Composition>
</Composite>
</ModuleImplementation>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>