ModelReader.ModelExists Method (Identifier, Boolean, Boolean)

 

Checks for a matching model by name and/or ID.

Namespace:   Microsoft.MasterDataServices.Deployment
Assembly:  Microsoft.MasterDataServices.Deployment (in Microsoft.MasterDataServices.Deployment.dll)

Syntax

public bool ModelExists(
    Identifier targetModelId,
    out bool isNameMatch,
    out bool isIdMatch
)
public:
bool ModelExists(
    Identifier^ targetModelId,
    [OutAttribute] bool% isNameMatch,
    [OutAttribute] bool% isIdMatch
)
member ModelExists : 
        targetModelId:Identifier *
        isNameMatch:bool byref *
        isIdMatch:bool byref -> bool
Public Function ModelExists (
    targetModelId As Identifier,
    <OutAttribute> ByRef isNameMatch As Boolean,
    <OutAttribute> ByRef isIdMatch As Boolean
) As Boolean

Parameters

  • isNameMatch
    Type: System.Boolean

    true to a name that passed in, and the name has a match; otherwise, false.

  • isIdMatch
    Type: System.Boolean

    true to an ID that passed in, and the ID has a match; otherwise, false.

Return Value

Type: System.Boolean

true if there is a model that matches targetModelId (per rules above); otherwise, false.

Remarks

Note that both of the out parameters can be true and the result false, if the name and ID both match, but they match different models.

ModelExists throws ArgumentNullException if targetModelId is null.

ModelExists throws ArgumentException if neither a name nor an ID was provided. At least one of those must be given.

See Also

ModelReader Class
Microsoft.MasterDataServices.Deployment Namespace

Return to top