DocsView.setFileIds का तरीका
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
व्यू में शामिल फ़ाइल आईडी सेट करता है.
इस सेटिंग को setEnableDrives
या setParent
के साथ इस्तेमाल न करें. इस फ़ंक्शन को कॉल करने पर, setEnableDrives
या setParent
पर किए गए पिछले कॉल बदल जाते हैं.
हस्ताक्षर
setFileIds(fileIds: string): DocsView;
विवरण
वैकल्पिक |
नहीं |
फ़ाइनल |
नहीं |
सुरक्षित सेक्स |
नहीं |
स्थिर |
नहीं |
पैरामीटर
नाम |
टाइप |
वैकल्पिक |
ब्यौरा |
fileIds
|
string
|
नहीं
|
फ़ाइल आईडी की स्ट्रिंग. एक से ज़्यादा फ़ाइल आईडी सेट करने पर, उन्हें अलग करने के लिए कॉमा का इस्तेमाल करें. अगर आपने किसी ऐसी फ़ाइल का फ़ाइल आईडी शामिल किया है जिसका ऐक्सेस उपयोगकर्ता के पास नहीं है, तो उस फ़ाइल को व्यू से हटा दिया जाएगा. |
रिटर्न
DocsView
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method DocsView.setFileIds\n\nSets the file IDs included in the view.\n\nDon't combine this setting with `setEnableDrives` or `setParent`. Calls to this\nfunction override previous calls to `setEnableDrives` or `setParent`.\n\nSignature\n---------\n\n setFileIds(fileIds: string): DocsView;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|-----------|----------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fileIds` | `string` | No | A string of file IDs. Use commas to separate file IDs if setting more than one. If you include the file ID of a file that the user doesn't have access to, the file is excluded from the view. |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]