Documentation

xPCHostScopeCollection.Add

Create xPCHostScope object with next available scope ID as key

Syntax

public xPCHostScope Add()
public xPCHostScope Add(int ID)
public IList<xPCHostScope> Add(int[] arrayOfIDs)

Description

Class: xPCHostScopeCollection Class

Method

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCHostScope Add() creates xPCHostScope object with the next available scope ID as key. It then adds an xPCHostScope object to xPCHostScopeCollection object. This method returns an xPCHostScopeObject object.

public xPCHostScope Add(int ID) creates xPCHostScope object with ID as key. ID is 32-bit integer that specifies an ID for the scope object. This method returns an xPCHostScopeObject object.

public IList<xPCHostScope> Add(int[] arrayOfIDs) creates an ILIST of xPCHostScope objects with an array of IDs as keys. arrayOfIDs is an array of 32-bit integers that specifies an array of IDs for scope objects.

Exception

ExceptionCondition

xPCException

When problem occurs, query xPCException object Reason property.

Introduced in R2011b

Was this topic helpful?