Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Prosedürler > isNameUsed
Procedures.isNameUsed() işlevi
Belirtilen ad zaten bir prosedür adıysa döndürün.
İmza:
export declare function isNameUsed(name: string, workspace: Workspace, opt_exclude?: Block): boolean;
Parametreler
Parametre |
Tür |
Açıklama |
ad |
dize |
Şüpheli ad. |
çalışma alanı |
Workspace |
Çakışmalar için taranacak çalışma alanı. |
opt_exclude |
Engelle |
(İsteğe bağlı) Karşılaştırmalardan hariç tutulması için isteğe bağlı engellemeler (bir kullanıcının kendisiyle çakışmasını istememesi). |
Şunu döndürür:
boolean
Ad kullanılıyorsa doğru değerine, aksi takdirde false değerine döndürülür.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],["The `Procedures.isNameUsed()` function checks if a given name is already in use as a procedure name within a specified workspace. It accepts the name (a string), the workspace to be checked, and optionally, a block to exclude from the comparison. The function returns `true` if the name is in use and `false` if the name is free. The function is useful to check name collision.\n"]]