본문으로 건너뛰기

Exist

Overloads​

NameDescription
Exist(int id)Exist Metadata
Exist(string name)Exist Metadata
Exist(string path, int id)지정된 파일에 ID에 해당하는 메타데이터 정보 유무
Exist(string path, string name)지정된 파일에 이름에 해당하는 메타데이터 유무

Exist(int id)​

public bool Exist(int id)

Exist Metadata

Parameters​

NameTypeDescription
idintID

Returns​

TypeDescription
boolResult - True: Exist. False: Not Exist.

Examples​

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;

// Delete Items
int[] items = new int[] { 4, 5, 6, 10};

foreach (int item in items)
{
if (vizcore3d.Metadata.Exist(item) == false) continue;

vizcore3d.Metadata.Delete(item);
}
}

Exist(string name)​

public bool Exist(string name)

Exist Metadata

Parameters​

NameTypeDescription
namestringName

Returns​

TypeDescription
boolResult - True: Exist. False: Not Exist.

Examples​

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;

string name = "H3294_A2231_ASSEMBLY.pdf";

if (vizcore3d.Metadata.Exist(name) == false) return;

vizcore3d.Metadata.Delete(name);
}

Exist(string path, int id)​

public bool Exist(string path, int id)

지정된 파일에 ID에 해당하는 메타데이터 정보 유무

Parameters​

NameTypeDescription
pathstringVIZ 파일 경로 (경로 + 파일)
idint메타데이터 아이디(ID)

Returns​

TypeDescription
bool지정된 아이디(ID)의 메타데이터 유무

Exist(string path, string name)​

public bool Exist(string path, string name)

지정된 파일에 이름에 해당하는 메타데이터 유무

Parameters​

NameTypeDescription
pathstringVIZ 파일 경로 (경로 + 파일)
namestring메타데이터 이름

Returns​

TypeDescription
bool이름에 해당하는 메타데이터 유무