> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class ForceUserSubroutine

Namespace: [VM.Managed.DAFUL.Force](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force)\
Assembly: VMDFP.dll

This class is to represent the force charactoristic properties of user-subroutine type.

```csharp theme={null}
public sealed class ForceUserSubroutine : ForceFunction, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable, IReservable
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
LinkContainer ←
[ForceFunction](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.md) ←
[ForceUserSubroutine](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceUserSubroutine.md)

#### Implements

IObservableObject,
IDisposableObject,
ILinkable,
IObject,
ILinkContainer,
IOwned,
IHasID,
IEventProvider,
ILinkContainerEvent,
IVerifiable,
IReservable

#### Inherited Members

[ForceFunction.WriteTemplate(XmlWriter)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.md#VM_Managed_DAFUL_Force_ForceFunction_WriteTemplate_System_Xml_XmlWriter_),
[ForceFunction.ReadTemplate(XmlReader)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.md#VM_Managed_DAFUL_Force_ForceFunction_ReadTemplate_System_Xml_XmlReader_),
[ForceFunction.IsUseApplyAction](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.md#VM_Managed_DAFUL_Force_ForceFunction_IsUseApplyAction),
[ForceFunction.Type](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.md#VM_Managed_DAFUL_Force_ForceFunction_Type),
LinkContainer.SetModified(),
LinkContainer.raise\_OnUpdating(object, LinkEventArgs),
LinkContainer.raise\_OnUpdate(object, LinkEventArgs),
LinkContainer.raise\_OnDestroying(object, LinkEventArgs),
LinkContainer.raise\_OnDestroy(object, LinkEventArgs),
LinkContainer.raise\_OnAdded(object, AddToDocEventArgs),
LinkContainer.raise\_OnRemoved(object, RemoveFromDocEventArgs),
LinkContainer.GetTargetListForUpdate(),
LinkContainer.SkipUpdateObjectImpl(),
LinkContainer.Initialize(Unit.ConvertFactor),
LinkContainer.SetFlagWhenXMLFile(string, bool),
LinkContainer.SetContainer(IOwned, bool),
LinkContainer.Container,
LinkContainer.Owner,
LinkContainer.Document,
LinkContainer.ID,
LinkContainer.IsChildExternable,
LinkContainer.IsExternable,
LinkContainer.OnRemoved,
LinkContainer.OnAdded,
LinkContainer.OnDestroy,
LinkContainer.OnDestroying,
LinkContainer.OnUpdate,
LinkContainer.OnUpdating,
ObservableObject.Dispose(),
ObservableObject.RaisePropertyChanged(string),
ObservableObject.RaisePropertyChanged(string, object, object),
ObservableObject.IsDisposed,
ObservableObject.TryDisposing,
ObservableObject.Disposed,
ObservableObject.Disposing,
ObservableObject.PropertyChanged

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ForceUserSubroutine()

Initializes a new instance of the [ForceUserSubroutine](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceUserSubroutine.md) class.

```csharp theme={null}
public ForceUserSubroutine()
```

### ForceUserSubroutine(PropertyForce)

Initializes a new instance of the [ForceUserSubroutine](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceUserSubroutine.md) class.

```csharp theme={null}
public ForceUserSubroutine(PropertyForce owner)
```

#### Parameters

`owner` PropertyForce

The owner force property.

## Properties

### Type

Gets the function type.

```csharp theme={null}
public override ForceFunction.FunctionType Type { get; }
```

#### Property Value

[ForceFunction](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.md).[FunctionType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Force.ForceFunction.FunctionType.md)

### UserSubroutine

Gets or sets the user subroutine.

```csharp theme={null}
public UserSubroutine UserSubroutine { get; set; }
```

#### Property Value

UserSubroutine

## Methods

### ReadTemplate(XmlReader)

Reads the template.

```csharp theme={null}
public override void ReadTemplate(XmlReader reader)
```

#### Parameters

`reader` [XmlReader](https://learn.microsoft.com/dotnet/api/system.xml.xmlreader)

The reader.

### WriteTemplate(XmlWriter)

Writes the template.

```csharp theme={null}
public override void WriteTemplate(XmlWriter writer)
```

#### Parameters

`writer` [XmlWriter](https://learn.microsoft.com/dotnet/api/system.xml.xmlwriter)

The writer.
