> ## 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.

# Interface IScenarioService

Namespace: [VM.Models.Project](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Project)\
Assembly: VM.Models.Project.dll

```csharp theme={null}
public interface IScenarioService
```

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### Clear()

```csharp theme={null}
void Clear()
```

### Compose(IEnumerable\<Assembly>)

```csharp theme={null}
void Compose(IEnumerable<Assembly> assemblies)
```

#### Parameters

`assemblies` IEnumerable\<Assembly>

### ContainsName(string)

```csharp theme={null}
bool ContainsName(string typeName)
```

#### Parameters

`typeName` string

#### Returns

bool

### TryGetInstance(string, IProjectDocument, string, out IScenario)

```csharp theme={null}
bool TryGetInstance(string typeName, IProjectDocument parent, string scenarioName, out IScenario scenario)
```

#### Parameters

`typeName` string

`parent` [IProjectDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.IProjectDocument.md)

`scenarioName` string

`scenario` [IScenario](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.IScenario.md)

#### Returns

bool

### TryGetType(string, out Type)

```csharp theme={null}
bool TryGetType(string typeName, out Type scenarioType)
```

#### Parameters

`typeName` string

`scenarioType` Type

#### Returns

bool
