Exist
Overloads
| Name | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| id | int | ID |
Returns
| Type | Description |
|---|---|
| bool | Result - 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
| Name | Type | Description |
|---|---|---|
| name | string | Name |
Returns
| Type | Description |
|---|---|
| bool | Result - 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
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 경로 (경로 + 파일) |
| id | int | 메타데이터 아이디(ID) |
Returns
| Type | Description |
|---|---|
| bool | 지정된 아이디(ID)의 메타데이터 유무 |
Exist(string path, string name)
public bool Exist(string path, string name)
지정된 파일에 이름에 해당하는 메타데이터 유무
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 경로 (경로 + 파일) |
| name | string | 메타데이터 이름 |
Returns
| Type | Description |
|---|---|
| bool | 이름에 해당하는 메타데이터 유무 |